0 votes
in TypeScript - JavaScript's Superset by
How to generate TypeScript definition file from any .ts file?

1 Answer

0 votes
by

We can generate TypeScript definition file from any .ts file by using tsc compiler. It will be generating a TypeScript definition which makes our TypeScript file reusable.

tsc --declaration file1.ts  

Related questions

0 votes
asked Mar 23, 2022 in TypeScript - JavaScript's Superset by sharadyadav1986
0 votes
asked Mar 23, 2022 in TypeScript - JavaScript's Superset by sharadyadav1986
...