diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index d0e2d978dc..f748ee9c50 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -1029,8 +1029,7 @@ declare namespace angular { * * @param promises A hash of promises. */ - all(promises: { [id: string]: IPromise; }): IPromise<{ [id: string]: any; }>; - all(promises: { [id: string]: IPromise; }): IPromise; + all(promises: { [K in keyof T]: IPromise; }): IPromise; /** * Creates a Deferred object which represents a task which will finish in the future. */