Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alexsthub opened this issue Jun 11, 2020 · 2 comments
Closed

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

alexsthub opened this issue Jun 11, 2020 · 2 comments

Comments

@alexsthub
Copy link

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
Copy link

unional commented Jun 11, 2020

Try just npm install -save-dev types/mysql2

@alexsthub
Copy link
Author

My mistake. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants