@mintlify/common
Version:
Commonly shared code within Mintlify
9 lines (8 loc) • 348 B
TypeScript
import type { Root } from 'mdast';
/**
* Get the AST for a JSX/TSX snippet
* @param jsxContent the content of the JSX/TSX snippet
* @param filePath optional file path, used to determine if TypeScript stripping is needed
* @returns the AST for the snippet
*/
export declare const getJsxEsmTree: (jsxContent: string, filePath?: string) => Root;