Skip to content

Commit c2e6e1d

Browse files
committed
- Added glob.d.ts
1 parent 9eab8bb commit c2e6e1d

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

glob.d.ts

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

0 commit comments

Comments
 (0)