microsoft / dts-gen

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

Use ts.generateTypesForModule #117

Open ghost opened 5 years ago

ghost commented 5 years ago

Replaces the current implementation with typescript's. dts-dom can presumably be deprecated completely. Will rebase once Microsoft/Typescript#28069 is released.

FredKSchott commented 5 years ago

@andy-ms was merged and released (in case you missed it)

orta commented 4 years ago

This API was removed from the public API at some point, negating this PR.

@weswigham do you think the JS -> DTS transpilation from 3.7 could be used here instead?

weswigham commented 4 years ago

Nope. dts-gen is supposed to be about using runtime type information to create declarations, while the js declaration emitter is all static analysis based mostly on JSdoc.