From d089b32eb1d9fd3112295d01821f054c10f1113a Mon Sep 17 00:00:00 2001 From: Ruben Schmidmeister Date: Thu, 10 Aug 2017 09:49:57 +0200 Subject: [PATCH] Add util.promisify types for rimraf --- types/rimraf/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;