-
-
Notifications
You must be signed in to change notification settings - Fork 654
Open
Labels
Description
I am not sure if this is possible:
import { createPool } from 'mysql2/promise'
const pool = await createPool({ /* ... */ })
pool.on('error', (err) => {
// handle all the errors here
})From the source code, it does inherit "error" listener from somewhere, but the types do not allow doing this.
Sorry I am a little busy these days so I can not dig into codes, also I try to look though the docs and there are also no descriptions about this.
Is the types wrong or I am not supposed to do this?