types / mysql2

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

Publish with DefinitelyTyped? #13

Closed sbking closed 7 years ago

sbking commented 7 years ago

Are there any plans of putting these typings on DefinitelyTyped? AFAIK the typings tool is outdated, and the proper way to publish types now is with DefinitelyTyped. That would allow npm install --save-dev @types/mysql2 .

unional commented 7 years ago

waiting for https://github.com/Microsoft/types-publisher/issues/4

sbking commented 7 years ago

@unional So is there any option that doesn't include adding typings as a dependency?

unional commented 7 years ago

One way is to change this repo to types/mysql2 and update the package.json so that consumer can do:

npm install types/mysql2

T4cC0re commented 7 years ago

Workaround: npm i -S types/npm-mysql2 Then you can use it like you would. It'll also save in package.json as "@types/mysql2": "github:types/npm-mysql2". Though, I would still prefer the @types/mysql2 install-method

felixfbecker commented 7 years ago

I've made some improvements to make that easier and added it to the README