@types/babel-plugin-syntax-jsx
Version:
TypeScript definitions for babel-plugin-syntax-jsx
9 lines (7 loc) • 421 B
TypeScript
// 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;