microsoft / dts-gen

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

Improve `--dt` generation, and add `--template` option for DT users. #22

Closed ghost closed 7 years ago

ghost commented 7 years ago

Templates are taken from our website (with the headers stripped out since we generate those separately).

If this is merged I can edit the DefinitelyTyped new-package script to use dts-gen instead. The usage will have to change: from npm run new-package -- foo to npm run new-package -- --name foo --template module.

adamvoss commented 7 years ago

It appears this option was never documented in the README