IOweb/node_modules/@mdx-js/mdx/lib/plugin/recma-build-jsx-transform.d.ts
2026-07-03 15:07:38 -05:00

21 lines
No EOL
712 B
TypeScript

/**
* Plugin to change the tree after compiling JSX away.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns
* Transform.
*/
export function recmaBuildJsxTransform(options?: Readonly<Options> | null | undefined): (tree: Program) => undefined;
/**
* Configuration for internal plugin `recma-build-jsx-transform`.
*/
export type Options = {
/**
* Whether to keep the import of the automatic runtime or get it from
* `arguments[0]` instead (default: `'program'`).
*/
outputFormat?: "function-body" | "program" | null | undefined;
};
import type { Program } from 'estree-jsx';
//# sourceMappingURL=recma-build-jsx-transform.d.ts.map