NG: Updated IPromise.then to return a typed result.

This commit is contained in:
Georgios Diamantopoulos
2013-08-26 13:29:44 +03:00
parent c692792def
commit 8b136c2043

View File

@@ -406,7 +406,7 @@ declare module ng {
}
interface IPromise<T> {
then(successCallback: (promiseValue: T) => any, errorCallback?: (reason: any) => any): IPromise<any>;
then<TResult>(successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TResult): IPromise<TResult>;
}
interface IDeferred<T> {