angular: gave a more precise return type for IQService.all()

This commit is contained in:
Kasper Guldmann Nielsen
2017-06-18 22:20:49 +02:00
parent 8aff840533
commit 5c0f7336fb
+1 -2
View File
@@ -1029,8 +1029,7 @@ declare namespace angular {
*
* @param promises A hash of promises.
*/
all(promises: { [id: string]: IPromise<any>; }): IPromise<{ [id: string]: any; }>;
all<T extends {}>(promises: { [id: string]: IPromise<any>; }): IPromise<T>;
all<T extends {}>(promises: { [K in keyof T]: IPromise<T[K]>; }): IPromise<T>;
/**
* Creates a Deferred object which represents a task which will finish in the future.
*/