mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #28954 from KarlosQ/patch-1
@types/require-dir Add options argument
This commit is contained in:
Vendored
+10
-2
@@ -1,8 +1,16 @@
|
||||
// Type definitions for require-dir 0.3
|
||||
// Type definitions for require-dir 1.0
|
||||
// Project: https://github.com/aseemk/requireDir
|
||||
// Definitions by: weekens <https://github.com/weekens>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function requireDir(directory: string): { [path: string]: any };
|
||||
interface options {
|
||||
recurse?: boolean;
|
||||
duplicates?: boolean;
|
||||
filter?: any;
|
||||
mapKey?: any;
|
||||
mapValue?: any;
|
||||
}
|
||||
|
||||
declare function requireDir(directory: string, options?: options): { [path: string]: any };
|
||||
|
||||
export = requireDir;
|
||||
|
||||
Reference in New Issue
Block a user