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) => void): void;
|
16 | declare function rimraf(path: string, callback: (error: Error) => void): void;
|
17 | declare namespace rimraf {
|
18 | function __promisify__(path: string, options?: Options): Promise<void>;
|
19 | function sync(path: string, options?: Options): void;
|
20 | let EMFILE_MAX: number;
|
21 | let BUSYTRIES_MAX: number;
|
22 | interface Options {
|
23 | maxBusyTries?: number;
|
24 | emfileWait?: boolean;
|
25 | disableGlob?: boolean;
|
26 | glob?: glob.IOptions | false;
|
27 |
|
28 | unlink?: typeof fs.unlink;
|
29 | chmod?: typeof fs.chmod;
|
30 | stat?: typeof fs.stat;
|
31 | lstat?: typeof fs.lstat;
|
32 | rmdir?: typeof fs.rmdir;
|
33 | readdir?: typeof fs.readdir;
|
34 |
|
35 | unlinkSync?: typeof fs.unlinkSync;
|
36 | chmodSync?: typeof fs.chmodSync;
|
37 | statSync?: typeof fs.statSync;
|
38 | lstatSync?: typeof fs.lstatSync;
|
39 | rmdirSync?: typeof fs.rmdirSync;
|
40 | readdirSync?: typeof fs.readdirSync;
|
41 | }
|
42 | }
|
43 | export = rimraf;
|