babel-plugin-syntax-typescript

7.0.0-alpha.19 • Public • Published

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"]
});

Package Sidebar

Install

npm i babel-plugin-syntax-typescript

Weekly Downloads

3,961

Version

7.0.0-alpha.19

License

MIT

Last publish

Collaborators

  • hzoo