UNPKG

1.03 kBTypeScriptView Raw
1export declare function getRootPath(): string;
2export declare function getPkgVersion(): string;
3export declare function getPkgItemByKey(key: string): any;
4export declare function printPkgVersion(): void;
5export declare const getAllFilesInFolder: (folder: string, filter?: string[]) => Promise<string[]>;
6export type TemplateSourceType = 'git' | 'url';
7export declare function getTemplateSourceType(url: string): TemplateSourceType;
8interface FileStat {
9 name: string;
10 isDirectory: boolean;
11 isFile: boolean;
12}
13export declare function readDirWithFileTypes(folder: string): FileStat[];
14export declare function printDevelopmentTip(platform: string): void;
15export declare function clearConsole(): void;
16export declare function execCommand(params: {
17 command: string;
18 successCallback?: (data: string) => void;
19 failCallback?: (data: string) => void;
20}): void;
21export declare function getPkgNameByFilterVersion(pkgString: string): string;
22export declare function isNil(value: any): value is null | undefined;
23export {};