microsoft / dts-gen

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

Add support for expressions from file #49

Closed Zalastax closed 7 years ago

Zalastax commented 7 years ago

Some modules has the useful types hidden under a function call (for setting options, making connections, etc.) so the module export doesn't work very well. The eval mode is very handy in those cases, but writing longer expressions on the command line is annoying.

The user will of course have to make some adjustments to the exported types but I had great success when I tried it out on the https://github.com/rtc-io/rtc-quickconnect module.