UNPKG

@builder.io/mitosis

Version:

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

10 lines (9 loc) 464 B
import * as babel from '@babel/core'; import { JSONOrNode } from '../../types/json'; import type { Context, ParseMitosisOptions } from './types'; declare const types: typeof babel.types; /** * Parses function declarations within the Mitosis copmonent's body to JSON */ export declare const componentFunctionToJson: (node: babel.types.FunctionDeclaration, context: Context, stateToScope: string[], options: Partial<ParseMitosisOptions>) => JSONOrNode; export {};