@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) • 399 B
TypeScript
import * as babel from '@babel/core';
import { JSONOrNode } from '../../types/json';
import { Context } 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[]) => JSONOrNode;
export {};