Open DanielRosenwasser opened 8 years ago
I would love this even for typescript files. Currently I am working on a small app that is one file, but trying to keep track of all the methods is not proving so easy, so a definitions file would be very helpful - and a way to generate it even more.
@M-Zuber - if you had an existing TS file that already has types, you should be able to add -d
to cmd line args or add:
"declaration": true
to your tsconfig.json
.
😑 I should not be programming while taking cold medicine... Thank you for reminding me about that flag 😀
Well it's a balancing act.
Feel better!
Maybe related to #14, but as people migrate their JavaScript to TypeScript and are looking for an easier process when
--allowJs
isn't picking up the slack, I think dts-gen can come in handy here.CC @bowdenk7