1 | # Installation
|
2 | > `npm install --save @types/babel-plugin-syntax-jsx`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for babel-plugin-syntax-jsx (https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel-plugin-syntax-jsx.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel-plugin-syntax-jsx/index.d.ts)
|
10 | ````ts
|
11 | // NB: This export doesn't match the handbook example, where `jsx` is the default export.
|
12 | // But it does match the runtime behaviour (at least at the time of this writing). For some reason,
|
13 | // babel-plugin-syntax-jsx/lib/index.js has this line at the bottom: module.exports = exports["default"];
|
14 | declare function jsx(): {
|
15 | manipulateOptions(opts: any, parserOpts: { plugins: string[] }): void;
|
16 | };
|
17 |
|
18 | export default jsx;
|
19 |
|
20 | ````
|
21 |
|
22 | ### Additional Details
|
23 | * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
|
24 | * Dependencies: none
|
25 |
|
26 | # Credits
|
27 | These definitions were written by [Marvin Hagemeister](https://github.com/marvinhagemeister).
|
28 |
|
\ | No newline at end of file |