typescript generating typings from your project
First start with creating a normal npm project
npm init
Then run tsc --init to create tsconfig.js file
Then add the following to your tsconfig.js
"declaration": true,
When you export code from your typscripts, the relevant typings gets generated.
Source code can be found here.
Comments