1 | # Installation
|
2 | > `npm install --save @types/require-dir`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for require-dir (https://github.com/aseemk/requireDir).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-dir.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-dir/index.d.ts)
|
10 | ````ts
|
11 | interface options {
|
12 | recurse?: boolean | undefined;
|
13 | duplicates?: boolean | undefined;
|
14 | extensions?: string[] | undefined;
|
15 | filter?: any;
|
16 | mapKey?: any;
|
17 | mapValue?: any;
|
18 | }
|
19 |
|
20 | declare function requireDir(directory: string, options?: options): { [path: string]: any };
|
21 |
|
22 | export = requireDir;
|
23 |
|
24 | ````
|
25 |
|
26 | ### Additional Details
|
27 | * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
28 | * Dependencies: none
|
29 |
|
30 | # Credits
|
31 | These definitions were written by [weekens](https://github.com/weekens).
|
32 |
|
\ | No newline at end of file |