typedast

2.0.1 • Public • Published

typedast

Use all of TypeScript to infor your types!

var typedast = require('typedast');
var fs = require('fs');

typedast.compile(fs.readFileSync('file.ts'), function (err, result) {
	result.javascript; // parse this
	result.getType; // call getType(node) to get a type for an AST node!
	result.types; // for debug
})

license

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i typedast

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • tcr