Merge pull request #18815 from bash/master

Add util.promisify types for rimraf
This commit is contained in:
Ron Buckton
2017-08-14 16:39:13 -07:00
committed by GitHub

View File

@@ -1,6 +1,8 @@
// Type definitions for rimraf 2.0
// Project: https://github.com/isaacs/rimraf
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, e-cloud <https://github.com/e-cloud>
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
// e-cloud <https://github.com/e-cloud>
// Ruben Schmidmeister <https://github.com/bash>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/rimraf.d.ts
@@ -13,6 +15,7 @@ import fs = require('fs');
declare function rimraf(path: string, options: rimraf.Options, callback: (error: Error) => void): void;
declare function rimraf(path: string, callback: (error: Error) => void): void;
declare namespace rimraf {
function __promisify__(path: string, options?: rimraf.Options): Promise<void>;
function sync(path: string, options?: rimraf.Options): void;
let EMFILE_MAX: number;
let BUSYTRIES_MAX: number;