UNPKG

@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) 525 B
import { MitosisComponent } from '../../types/mitosis-component'; import { Project } from 'ts-morph'; export type ParseMitosisOptions = { jsonHookNames?: string[]; compileAwayPackages?: string[]; typescript: boolean; tsProject?: { project: Project; }; filePath?: string; }; export type ResolvedImport = { path: string; value: string; }; export type Context = { cwd?: string; builder: { component: MitosisComponent; resolvedImports?: ResolvedImport[]; }; };