@lcap/builder
Version:
lcap builder utils
12 lines (11 loc) • 694 B
TypeScript
import { type MaterialSchema, type MaterialComponent } from '@lcap/material-parser';
import { ProjectMetaInfo } from '../utils/project';
import { WriteOptions } from '../utils/lcap';
export interface MaterialComponentSchema {
meta: Omit<MaterialSchema, 'components'>;
component: MaterialComponent;
write: WriteOptions;
}
export declare function createForSchema(rootPath: string, metaInfo: ProjectMetaInfo, schema: MaterialComponentSchema): Promise<void>;
export declare function setImportStyle(rootPath: string, schema: MaterialSchema): void;
export declare function executeCreateForSchema(rootPath: string, metaInfo: ProjectMetaInfo, schema: string, name?: string): Promise<void>;