2015-01-06

TypeScript 1.4 AST from Node.js

The upcoming TypeScript 1.4 comes preinstalled with Visual Studio 2015 Preview. The new compiler and its API are much improved since I wrote TypeScript AST from Node.js back in June with TypeScript 1.0. The services are not well documented yet, so I'm writing this to help in that regard. I updated the program I wrote earlier to use the new API and print out all interfaces declaration names from the file typescript.d.ts.

https://github.com/ctaggart/TsAst/blob/ts14/app.ts


Results in: