Use the latest TypeScript, with complete access to the compiler API 🌹
Still Just TypeScript
byotswill use whatever TypeScript version you install in your application. So you are actually using whatever TypeScript you bring in (recommend
npm install typescript@next).
But with the following advantages
tsglobally. If you are doing heavy TypeScript work this helps e.g. alm / atom-typescript / tslint all do this.
/* internal */). It helps experiment by copy pasting from the TypeScript source code.
The definitions are updated daily automatically and our version numbers match the TypeScript nightly version numbers.
In your package.json
npm install byots@latest --save --save-exact
Each release is named after the day it was built and the git commit hash in Microsoft/TypeScript/master that it was built from. We recommend adding
save-exact so you know exactly what you tested with.
import * as ts from 'byots' and you get what
require('typescript') would give you.
In addition to returning what
typescript returns we also expose
ts as a global.
Which makes it easy to use the compiler API if you are using it heavily. Note you only need to
import once from any file.
Note that this is a personal endeavor, not officially by Microsoft.