mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-08 06:42:22 +08:00
Merge pull request #3165 from Xiot/master
Changed IQPromise.reject to return IPromise<any>
This commit is contained in:
2
angularjs/angular.d.ts
vendored
2
angularjs/angular.d.ts
vendored
@@ -926,7 +926,7 @@ declare module ng {
|
||||
*
|
||||
* @param reason Constant, message, exception or an object representing the rejection reason.
|
||||
*/
|
||||
reject(reason?: any): IPromise<void>;
|
||||
reject(reason?: any): IPromise<any>;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user