From aba20a4f6008036b4ff28e12e11c0e5815326e0a Mon Sep 17 00:00:00 2001 From: edvin Date: Fri, 20 Nov 2015 14:52:50 +0100 Subject: [PATCH] Add reason to cancel method for bluebird 2.0.0. --- bluebird/bluebird.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluebird/bluebird.d.ts b/bluebird/bluebird.d.ts index 9f36cf5bc..efbba7c01 100644 --- a/bluebird/bluebird.d.ts +++ b/bluebird/bluebird.d.ts @@ -134,7 +134,7 @@ declare class Promise implements Promise.Thenable, Promise.Inspection { * Promises are by default not cancellable. Use `.cancellable()` to mark a promise as cancellable. */ // TODO what to do with this? - cancel(): Promise; + cancel(reason?: any): Promise; /** * Like `.then()`, but cancellation of the the returned promise or any of its descendant will not propagate cancellation to this promise or this promise's ancestors.