diff --git a/types/rimraf/index.d.ts b/types/rimraf/index.d.ts index 17ab69fec7..9c4cca2183 100644 --- a/types/rimraf/index.d.ts +++ b/types/rimraf/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for rimraf 2.0 // Project: https://github.com/isaacs/rimraf -// Definitions by: Carlos Ballesteros Velasco , e-cloud +// Definitions by: Carlos Ballesteros Velasco +// e-cloud +// Ruben Schmidmeister // 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; function sync(path: string, options?: rimraf.Options): void; let EMFILE_MAX: number; let BUSYTRIES_MAX: number;