@types/babel-plugin-syntax-jsx
TypeScript icon, indicating that this package has built-in type declarations

6.18.2 • Public • Published

Installation

npm install --save @types/babel-plugin-syntax-jsx

Summary

This package contains type definitions for babel-plugin-syntax-jsx (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel-plugin-syntax-jsx.

index.d.ts

// NB: This export doesn't match the handbook example, where `jsx` is the default export.
// But it does match the runtime behaviour (at least at the time of this writing). For some reason,
// babel-plugin-syntax-jsx/lib/index.js has this line at the bottom: module.exports = exports["default"];
declare function jsx(): {
    manipulateOptions(opts: any, parserOpts: { plugins: string[] }): void;
};

export default jsx;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Marvin Hagemeister.

Dependents (1)

Package Sidebar

Install

npm i @types/babel-plugin-syntax-jsx

Weekly Downloads

7,654

Version

6.18.2

License

MIT

Unpacked Size

3.56 kB

Total Files

5

Last publish

Collaborators

  • types