1 |
|
2 |
|
3 | import * as fs from "fs";
|
4 | declare namespace RecursiveReaddir {
|
5 | type IgnoreFunction = (file: string, stats: fs.Stats) => boolean;
|
6 | type Ignores = ReadonlyArray<string | IgnoreFunction>;
|
7 | type Callback = (error: Error, files: string[]) => void;
|
8 | interface readDir {
|
9 | (path: string, ignores?: Ignores): Promise<string[]>;
|
10 | (path: string, callback: Callback): void;
|
11 | (path: string, ignores: Ignores, callback: Callback): void;
|
12 | }
|
13 | }
|
14 |
|
15 | declare var recursiveReadDir: RecursiveReaddir.readDir;
|
16 | export = recursiveReadDir;
|