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

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm