Merge pull request #5536 from deadalusai/fix-finally-signature

angularjs: Fix the finally method type signature
This commit is contained in:
Masahiro Wakame
2015-08-26 02:12:08 +09:00
2 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -1063,7 +1063,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> {