UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

11 lines (10 loc) 495 B
import { MitosisComponent } from '../../types/mitosis-component'; import { ParseMitosisOptions } from './types'; /** * This function takes the raw string from a Mitosis component, and converts it into a JSON that can be processed by * each generator function. * * @param jsx string representation of the Mitosis component * @returns A JSON representation of the Mitosis component */ export declare function parseJsx(jsx: string, _options?: Partial<ParseMitosisOptions>): MitosisComponent;