1 | // Type definitions for require-dir 1.0
|
2 | // Project: https://github.com/aseemk/requireDir
|
3 | // Definitions by: weekens <https://github.com/weekens>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | interface options {
|
7 | recurse?: boolean | undefined;
|
8 | duplicates?: boolean | undefined;
|
9 | extensions?: string[] | undefined;
|
10 | filter?: any;
|
11 | mapKey?: any;
|
12 | mapValue?: any;
|
13 | }
|
14 |
|
15 | declare function requireDir(directory: string, options?: options): { [path: string]: any };
|
16 |
|
17 | export = requireDir;
|