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