1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | import glob = require('glob');
|
13 | import fs = require('fs');
|
14 |
|
15 | declare function rimraf(path: string, options: rimraf.Options, callback: (error: Error | null | undefined) => void): void;
|
16 | declare function rimraf(path: string, callback: (error: Error | null | undefined) => void): void;
|
17 | declare namespace rimraf {
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 | function sync(path: string, options?: Options): void;
|
24 |
|
25 | |
26 |
|
27 |
|
28 | interface Options {
|
29 | maxBusyTries?: number | undefined;
|
30 | emfileWait?: number | undefined;
|
31 |
|
32 | disableGlob?: boolean | undefined;
|
33 | glob?: glob.IOptions | false | undefined;
|
34 |
|
35 | unlink?: typeof fs.unlink | undefined;
|
36 | chmod?: typeof fs.chmod | undefined;
|
37 | stat?: typeof fs.stat | undefined;
|
38 | lstat?: typeof fs.lstat | undefined;
|
39 | rmdir?: typeof fs.rmdir | undefined;
|
40 | readdir?: typeof fs.readdir | undefined;
|
41 | unlinkSync?: typeof fs.unlinkSync | undefined;
|
42 | chmodSync?: typeof fs.chmodSync | undefined;
|
43 | statSync?: typeof fs.statSync | undefined;
|
44 | lstatSync?: typeof fs.lstatSync | undefined;
|
45 | rmdirSync?: typeof fs.rmdirSync | undefined;
|
46 | readdirSync?: typeof fs.readdirSync | undefined;
|
47 | }
|
48 | }
|
49 | export = rimraf;
|