Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-typescript

Package Overview
Dependencies
Maintainers
5
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-typescript - npm Package Compare versions

Comparing version 7.0.0-beta.49 to 7.0.0-beta.50

6

package.json
{
"name": "@babel/plugin-syntax-typescript",
"version": "7.0.0-beta.49",
"version": "7.0.0-beta.50",
"description": "Allow parsing of TypeScript syntax",

@@ -13,3 +13,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-typescript",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.49"
"@babel/helper-plugin-utils": "7.0.0-beta.50"
},

@@ -20,4 +20,4 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.0.0-beta.49"
"@babel/core": "7.0.0-beta.50"
}
}
# @babel/plugin-syntax-typescript
## Installation
> Allow parsing of TypeScript syntax
```sh
npm install --save-dev @babel/plugin-syntax-typescript
```
See our website [@babel/plugin-syntax-typescript](https://new.babeljs.io/docs/en/next/babel-plugin-syntax-typescript.html) for more information.
## Usage
## Install
### Via `.babelrc` (Recommended)
Using npm:
**.babelrc**
```json
{
"plugins": ["@babel/plugin-syntax-typescript"]
}
```sh
npm install --save @babel/plugin-syntax-typescript
```
### Via CLI
or using yarn:
```sh
babel --plugins @babel/plugin-syntax-typescript script.js
yarn add --save @babel/plugin-syntax-typescript
```
### Via Node API
```javascript
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-syntax-typescript"]
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc