UNPKG

iles

Version:

Vite & Vue powered static site generator with partial hydration

11 lines (9 loc) 613 B
declare const warnMark = "\u001B[33m\u26A0\u001B[0m"; declare function withSpinner<T>(message: string, fn: () => Promise<T>): Promise<T>; declare function slash(path: string): string; declare function uniq<T>(arr: Array<T>): T[]; declare function flattenPath(path: string): string; declare function pathToFilename(path: string, ext?: string): string; declare function replaceAsync(str: string, regex: RegExp, asyncFn: (...groups: string[]) => Promise<string>): Promise<string>; declare function rm(dir: string): void; export { flattenPath, pathToFilename, replaceAsync, rm, slash, uniq, warnMark, withSpinner };