babel-preset-typescript
Babel preset for TypeScript.
This preset includes the following plugins:
Example
In
const x: number = 0;
Out
const x = 0;
Installation
npm install --save-dev babel-preset-typescript
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel --presets typescript script.ts
Via Node API
;