Parsing typescript .d.ts file to generate JSON or Gopherjs package automatically! :)
The parser is created using PEG for Go.
This work is in progress(json output is now ok), I'll finish it soon.
Usage: ./dtsparser "path/to/target/file"
Json would be output to stdout.
-
This is not a complete
.d.ts
parser, just for easy coverting. -
Use UTF8 when parsing
-
BOM is not supported
if parsing not pass, try saving the file without UTF8 BOM first
-
Anonymouse function in Object/Interface are not processed