Merge pull request #28954 from KarlosQ/patch-1

@types/require-dir Add options argument
This commit is contained in:
Andrew Casey
2018-09-25 13:32:35 -07:00
committed by GitHub
+10 -2
View File
@@ -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;