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
@thomaschaaf thanks for raising this issue, you're right mysql2 types should be supported for instrumentation in our type definitions as well. We are open to you adding a PR for this support otherwise I'll add it soon.
Types of property 'createConnection' are incompatible.
Type '{ (connectionUri: string): Connection; (config: ConnectionOptions): Connection; }' is not assignable to type '(connectionUri: string | ConnectionConfig) => Connection'.
Types of parameters 'connectionUri' and 'connectionUri' are incompatible.
Type 'string | ConnectionConfig' is not assignable to type 'string'.
Type 'ConnectionConfig' is not assignable to type 'string'.
Hello, I've raised a PR to hopefully close this issue. Feedback welcome. Looks like the PR workflows require maintainer approval if anyone reading this has sufficient permissions, please?
Currently per the TypeScript definition only the
mysql
package may be used. According to the issue #6 themysql2
package is also supported.The text was updated successfully, but these errors were encountered: