recursive-readdir-sync.d.ts 408 B

1234567
  1. /**
  2. * Recursively read directory
  3. * @param {string[]=[]} arr This doesn't have to be provided, it's used for the recursion
  4. * @param {string=dir`} rootDir Used to replace the initial path, only the relative path is left, it's faster than path.relative.
  5. * @returns Array holding all relative paths
  6. */
  7. export declare function recursiveReadDirSync(dir: string, arr?: string[], rootDir?: string): string[];