@lcap/builder
Version:
lcap builder utils
12 lines (11 loc) • 692 B
TypeScript
import * as babel from '@babel/core';
import { ComponentMetaInfo } from './types';
export declare const evalOptions: (object: any) => any;
export declare const getNodeCode: (node: any) => string;
export declare const getJSXNameByNode: (node: any) => any;
export declare const getSlotName: (slotName: any) => any;
export declare const getComponentMetaByApiTs: (tsPath: any) => ComponentMetaInfo | undefined;
export declare function getAST(obj: any, stringify?: boolean): any;
export declare function getTypeAST(type: string): babel.types.TSType;
export declare function getAPIPropAST(code: string, name: any): any;
export declare function formatCode(code: string, parser?: any): Promise<any>;