mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-14 12:30:47 +08:00
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:
1 parent
c5a2f44bab
commit
fd7399b3fd
2 files changed
+36
-22
No files matched your search
Vendored
+1
-1
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user