Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-typescript

Package Overview
Dependencies
2
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-typescript

Allow parsing of TypeScript syntax


Version published
Maintainers
4
Created

Package description

What is @babel/plugin-syntax-typescript?

The @babel/plugin-syntax-typescript package is a plugin for Babel that allows Babel to parse TypeScript syntax. This means it enables Babel to understand TypeScript code, but it does not perform type checking or compilation to JavaScript. It's primarily used in projects that want to take advantage of Babel's transformations and plugins while writing their code in TypeScript.

What are @babel/plugin-syntax-typescript's main functionalities?

Parsing TypeScript Syntax

This feature allows Babel to parse TypeScript code, including imports, exports, interfaces, and type annotations, without performing type checking. It's useful for projects that use Babel for code transformation and want to write their source code in TypeScript.

import { foo } from 'bar';
interface MyInterface {
  myProperty: string;
}
const myVar: MyInterface = { myProperty: 'Hello' };

Other packages similar to @babel/plugin-syntax-typescript

Changelog

Source

v7.24.7 (2024-06-05)

:bug: Bug Fix
  • babel-node
    • #16554 Allow extra flags in babel-node (@nicolo-ribaudo)
  • babel-traverse
  • babel-helper-transform-fixture-test-runner, babel-plugin-proposal-explicit-resource-management
:house: Internal
  • babel-helpers, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

Readme

Source

@babel/plugin-syntax-typescript

Allow parsing of TypeScript syntax

See our website @babel/plugin-syntax-typescript for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-typescript

or using yarn:

yarn add @babel/plugin-syntax-typescript --dev

Keywords

FAQs

Package last updated on 05 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc