recursive-delete.d.ts 411 B

12345678
  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. */
  8. export declare function recursiveDelete(dir: string, exclude?: RegExp, previousPath?: string): Promise<void>;