forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recursive-readdir.d.ts
21 lines (18 loc) · 946 Bytes
/
recursive-readdir.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Type definitions for recursive-readdir v1.2.1
// Project: https://github.com/jergason/recursive-readdir/
// Definitions by: Elisée Maurer <https://github.com/elisee/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "recursive-readdir" {
import * as fs from "fs";
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 | ((file: string, stats: fs.Stats) => void))[], callback: (error: Error, files: string[]) => any): void;
(path: string, ignoreFunction: (file: string, stats: fs.Stats) => void, callback: (error: Error, files: string[]) => any): void;
}
}
var r: RecursiveReaddir.readdir;
export = r;
}