angularjs: Reverting to using stronger signatures for IPromise. With tests for that.

This commit is contained in:
basarat
2013-08-27 22:13:20 +10:00
parent d3f7a944b1
commit 402fd36440
2 changed files with 14 additions and 7 deletions
+2 -1
View File
@@ -406,7 +406,8 @@ declare module ng {
}
interface IPromise<T> {
then(successCallback: (promiseValue: T) => any, errorCallback?: (reason: any) => any): IPromise<any>;
then<TResult>(successCallback: (promiseValue: T) => IPromise<TResult>, errorCallback?: (reason: any) => any): IPromise<TResult>;
then<TResult>(successCallback: (promiseValue: T) => TResult, errorCallback?: (reason: any) => TResult): IPromise<TResult>;
}
interface IDeferred<T> {