-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathglob.d.ts
46 lines (38 loc) · 1.07 KB
/
glob.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// glob updated: 3.1.14
// https://github.com/isaacs/node-glob
declare module "glob" {
import glob = module("glob");
export function(pattern: string, callback: (err: Error, files: string[]) => void);
export function(pattern: string, options: Options, callback: (err: Error, files: string[]) => void);
export function sync(pattern: string, options?: Options) : string[];
export interface Glob extends EventEmitter {
// event: end
// event: match
// event: error
// event: abort
constructor (pattern: string, callback: (err: Error, files: string[]) => void);
constructor (pattern: string, options: Options, callback: (err: Error, files: string[]) => void);
abort();
minimatch: any;
options: Options;
error: Error;
aborted: bool;
}
export interface Options {
cwd?: string;
root?: string;
nomount?: bool;
mark?: string;
nosort?: bool;
stat?: bool;
silent?: bool;
strict?: bool;
statCache?;
sync?: bool;
nounique?: bool;
nonull?: bool;
nocase?: bool;
debug?: bool;
globDebug?: bool;
}
}