microsoft / dts-gen

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

Using on script runtime #31

Open Bnaya opened 7 years ago

Bnaya commented 7 years ago

Is there a way to use the tool in a way similar to that:

import gen from 'dts-gen';
class MyClass {
m1(){}
m2(){}
...
}

const o = new MyClass()

gen(o)

?