next
Version:
The React Framework
9 lines (8 loc) • 411 B
TypeScript
/**
* Recursively delete directory contents
* @param {string} dir Directory to delete the contents of
* @param {RegExp} [exclude] Exclude based on relative file path
* @param {string} [previousPath] Ensures that parameter dir exists, this is not passed recursively
* @returns Promise void
*/
export declare function recursiveDelete(dir: string, exclude?: RegExp, previousPath?: string): Promise<void>;