@liangskyli/utils
Version:
@liangskyli/utils
8 lines (7 loc) • 490 B
TypeScript
import prettier from 'prettier';
export declare const getAbsolutePath: (pathName: string) => string;
export declare const getRelativePath: (absolutePath1: string, absolutePath2: string) => string;
export declare const prettierData: (fileContent: string, options?: prettier.Options) => Promise<string>;
export declare const copyOptions: <T = undefined>(options: T) => T;
export declare const winPath: (pathStr: string) => string;
export declare const removeFilesSync: (dir: string) => void;