rap2itf
Version:
rapper接口转换为typescirpt interface
18 lines (17 loc) • 836 B
TypeScript
export declare function withoutExt(p: string): string;
export declare function relativeImport(from: string, to: string): string;
export declare function writeFile(filepath: string, contents: string): Promise<void>;
export declare function moveFile(from: string, to: string): Promise<void>;
/**
* 命令是否在根目录执行
*/
export declare function isInRoot(): boolean;
/** 获取文件md5 */
export declare function getMd5(fileContent: string): string;
/** 模板文件覆盖确认 */
export declare function fileOverWiriteconfirm(message: string): Promise<any>;
/** 获取当前包名 */
export declare function getPackageName(): any;
export declare function getPackageRegistry(): any;
/** 获取最新的版本 */
export declare function latestVersion(packageName: string, isBeta?: boolean): Promise<string>;