typescript-infer-types
Infer types from typescript code.
This is currently under develop, feel free to try it and report any issues or features request you might have.
Install
$ npm i -g typescript-infer-types
Example
// input.ts; hello = "world"; EXTERNAL.DEPP.VAR = a; EXTERNAL.foo3; ;; c = 3;d = 4; c = EXTERNAL.BARR; foo"asdf";
Then extract external definitions (outputs to stdout):
$ typescript-infer-types input.tsdeclare let hello: string;declare let EXTERNAL: