Nostalgic Perogi Monogramming
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

babel-preset-typescript

7.0.0-alpha.19 • Public • Published

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

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["typescript"]
}

Via CLI

babel --presets typescript script.ts

Via Node API

require("babel-core").transform("code", {
  presets: ["typescript"]
});

install

npm i babel-preset-typescript

Downloadsweekly downloads

632

version

7.0.0-alpha.19

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability