@ant-design/tools
Version:
tools for ant design
21 lines (20 loc) • 660 B
TypeScript
export declare function getProjectPath(...filePath: string[]): string;
export declare function resolve(moduleName: string): string;
export interface AntdToolsConfig {
dist?: {
finalize?: VoidFunction;
};
bail?: boolean;
compile?: {
transformTSFile?: (file: File) => File | File[];
transformFile?: (file: File) => File | File[];
finalize?: VoidFunction;
};
}
export declare function getConfig(): Promise<AntdToolsConfig>;
/**
* 是否存在可用的 browserslist 配置
* https://github.com/browserslist/browserslist#queries
* @returns
*/
export declare function isThereHaveBrowserslistConfig(): boolean;