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

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error