UNPKG

@builder.io/mitosis

Version:

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

8 lines (7 loc) 609 B
import * as babel from '@babel/core'; import type { Visitor } from '@babel/traverse'; export declare const babelTransformCode: <VisitorContextType = any>(code: string, visitor?: babel.Visitor<VisitorContextType> | undefined, stripTypes?: boolean) => string; type ExpressionType = 'expression' | 'unknown' | 'block' | 'functionBody'; export declare const babelTransformExpression: <VisitorContextType = any>(code: string, visitor: babel.Visitor<VisitorContextType>, initialType?: ExpressionType, stripTypes?: boolean) => string; export declare const convertTypeScriptToJS: (code: string) => string; export {};