@builder.io/mitosis
Version:
Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io
23 lines (22 loc) • 730 B
TypeScript
import { Node, types } from '@babel/core';
import { Target } from '../../types/config';
import { MitosisPlugin } from '../../types/plugins';
export declare const replaceSignalSetters: ({ code, nodeMaps, }: {
code: string;
nodeMaps: {
from: types.Node;
setTo: types.Expression;
}[];
}) => string;
/**
* Processes `Signal` type imports, transforming them to the target's equivalent and adding the import to the component.
*/
export declare const getSignalTypePlugin: ({ target }: {
target: Target;
}) => MitosisPlugin;
/**
* Processes `mySignal.value` accessors for props, context, and state.
*/
export declare const getSignalAccessPlugin: ({ target }: {
target: Target;
}) => MitosisPlugin;