microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 102 forks source link

Scrape JSDoc when possible #2

Open RyanCavanaugh opened 8 years ago

RyanCavanaugh commented 8 years ago

If we can locate the source (either by having the user specify as an additional argument, or grokking node modules ourselves), we can try to line up the function and property jsdoc comments by name and re-attach them in the .d.ts, as well as put in inferred types.

AbraaoAlves commented 7 years ago

There is a template for jsdoc tool here: tsd-jsdoc.