UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

9 lines (8 loc) 411 B
/** * 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>;