mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Fix module to work with ES6 import syntax
This commit is contained in:
parent
73f40823e5
commit
dacbb54147
15
recursive-readdir/recursive-readdir.d.ts
vendored
15
recursive-readdir/recursive-readdir.d.ts
vendored
@ -4,8 +4,15 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "recursive-readdir" {
|
||||
function readdir(path: string, callback: (error: Error, files: string[]) => any): void;
|
||||
// ignorePattern supports glob syntax via https://github.com/isaacs/minimatch
|
||||
function readdir(path: string, ignorePattern: string[], callback: (error: Error, files: string[]) => any): void;
|
||||
export = readdir;
|
||||
|
||||
module RecursiveReaddir {
|
||||
interface readdir {
|
||||
(path: string, callback: (error: Error, files: string[]) => any): void;
|
||||
// ignorePattern supports glob syntax via https://github.com/isaacs/minimatch
|
||||
(path: string, ignorePattern: string[], callback: (error: Error, files: string[]) => any): void;
|
||||
}
|
||||
}
|
||||
|
||||
var r: RecursiveReaddir.readdir;
|
||||
export = r;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user