UNPKG

411 BTypeScriptView Raw
1/**
2 * Recursively delete directory contents
3 * @param {string} dir Directory to delete the contents of
4 * @param {RegExp} [exclude] Exclude based on relative file path
5 * @param {string} [previousPath] Ensures that parameter dir exists, this is not passed recursively
6 * @returns Promise void
7 */
8export declare function recursiveDelete(dir: string, exclude?: RegExp, previousPath?: string): Promise<void>;