babel-plugin-syntax-typescript
v7.0.0-alpha.19
Published
Allow parsing of TypeScript syntax
Downloads
28,000
Readme
babel-plugin-syntax-typescript
Installation
npm install --save-dev babel-plugin-syntax-typescript
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["syntax-typescript"]
}
Via CLI
babel --plugins syntax-typescript script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-typescript"]
});