Fix the finally method type signature

The finally method does not change the type of the returned promise -
instead the original promise value is passed through unchanged.
This commit is contained in:
Benjamin Fox
2015-08-25 09:58:04 +12:00
parent c5a2f44bab
commit fd7399b3fd
2 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -1061,7 +1061,7 @@ declare module angular {
*
* Because finally is a reserved word in JavaScript and reserved keywords are not supported as property names by ES3, you'll need to invoke the method like promise['finally'](callback) to make your code IE8 and Android 2.x compatible.
*/
finally<TResult>(finallyCallback: () => any): IPromise<TResult>;
finally(finallyCallback: () => any): IPromise<T>;
}
interface IDeferred<T> {