types / mysql2

Typings for https://github.com/sidorares/node-mysql2
ISC License
41 stars 23 forks source link

Npm install is giving me pre PR-18 content #45

Closed alexsthub closed 4 years ago

alexsthub commented 4 years ago

When i run npm install --save-dev types/mysql2#semver:1.0.0 it gives me the types that are pre PR-18. For instance, the createConnection method in promise.d.ts still returns a Connection, not Promise.

export function createConnection(connectionUri: string): Connection; export function createConnection(config: ConnectionOptions): Connection;

Am I doing something wrong? Thanks

unional commented 4 years ago

Try just npm install -save-dev types/mysql2

alexsthub commented 4 years ago

My mistake. Thanks for your help!