From d29a12401a227a542debb597a80dd814633d7ba0 Mon Sep 17 00:00:00 2001 From: Xiot Date: Mon, 17 Nov 2014 22:40:23 -0500 Subject: [PATCH] Changed IQPromise.reject to return IPromise instead of IPromise to be better compatible with most likely use cases. --- angularjs/angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 64a9d0652b..febd17873a 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -926,7 +926,7 @@ declare module ng { * * @param reason Constant, message, exception or an object representing the rejection reason. */ - reject(reason?: any): IPromise; + reject(reason?: any): IPromise; /** * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. *