From 3df971db33bd4c05e65ea3d2eba3243195f1a6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Boya=20Garc=C3=ADa?= Date: Fri, 1 Jul 2016 04:33:56 +0200 Subject: [PATCH] Make onCancel optional --- 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 fc3343ecd2..34659859cb 100644 --- a/bluebird/bluebird.d.ts +++ b/bluebird/bluebird.d.ts @@ -34,7 +34,7 @@ interface PromiseConstructor { new (callback: ( resolve: (thenableOrResult?: T | PromiseLike) => void, reject: (error: any) => void, - onCancel: PromiseCancelHandlerSetter + onCancel?: PromiseCancelHandlerSetter ) => void): Promise; config(options: {