From a36070aefffc7f59f293934bc3a7be75d546ae23 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 7 Jul 2016 15:16:36 -0700 Subject: [PATCH] Make sure `__Promise` properly extends `dojo.promise.Promise` under `--strictNullChecks` --- dojo/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/index.d.ts b/dojo/index.d.ts index 455ffc8fe3..974bbd6106 100644 --- a/dojo/index.d.ts +++ b/dojo/index.d.ts @@ -978,7 +978,7 @@ declare namespace dojo { * * @param errback OptionalCallback to be invoked when the promise is rejected. */ - otherwise(errback: Function): any; + otherwise(errback?: Function): any; /** * Add new callbacks to the promise. * Add new callbacks to the deferred. Callbacks can be added