You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Typescript and all of its glorious type checking with the mariadb package. When creating a pool and then wanting to listen for the four pool events, I get an error:
Property 'on' does not exist on type 'Pool'.
Using the following code, mostly as per the docs but instead using import rather than require so that it picks up the declaration file:
importmariadbfrom'mariadb';constpool=mariadb.createPool({host: 'mydb.com',user:'myUser'});pool.on('connection',(conn)=>console.log(`connection ${conn.threadId} has been created in pool`);
Is there an issue with me or the module?
The text was updated successfully, but these errors were encountered:
I am using Typescript and all of its glorious type checking with the mariadb package. When creating a pool and then wanting to listen for the four pool events, I get an error:
Using the following code, mostly as per the docs but instead using import rather than require so that it picks up the declaration file:
Is there an issue with me or the module?
The text was updated successfully, but these errors were encountered: