@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) • 424 B
TypeScript
import type { NodePath } from '@babel/core';
import { types } from '@babel/core';
import { CodeType } from '../helpers/plugins/process-code/types';
import { MitosisComponent } from '../types/mitosis-component';
export type RefMapper = (refName: string, extra?: {
type?: CodeType;
path: NodePath<types.Identifier>;
}) => string;
export declare const mapRefs: (component: MitosisComponent, mapper: RefMapper) => void;