@lcap/builder
Version:
lcap builder utils
15 lines (14 loc) • 708 B
TypeScript
import { MaterialSchema } from '@lcap/material-parser';
import { type NaslUIComponentConfig } from '../overload';
import { ComponentMetaInfo } from './types';
export declare const getConfigComponents: (rootPath: string) => any;
export declare const getPackName: (name: any, version: any) => string;
export declare const getComponentConfigByName: (name: string, list: NaslUIComponentConfig[]) => NaslUIComponentConfig | undefined;
export declare function getComponentMetaInfos(rootPath: string, parseAPI?: boolean): Promise<ComponentMetaInfo[]>;
export interface WriteOptions {
type: 'pc' | 'h5' | 'both';
prefix: string;
}
export interface Schema extends MaterialSchema {
write?: WriteOptions;
}