Skip to content

Commit

Permalink
Update resolve type in angular-material.d.ts. (DefinitelyTyped#11122)
Browse files Browse the repository at this point in the history
Resolve is using the mdCompileService, which requires functions that return promises, not promises: https://github.com/angular/material/blob/18afebe15e431e8413dcc7ebdb1c00c80c15b7f0/src/core/services/compiler/compiler.js#L47
  • Loading branch information
ErinCoughlan authored and vvakame committed Sep 9, 2016
1 parent 88ae500 commit 950ae09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions angular-material/angular-material.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare namespace angular.material {
clickOutsideToClose?: boolean;
disableBackdrop?: boolean;
escapeToClose?: boolean;
resolve?: {[index: string]: angular.IPromise<any>};
resolve?: {[index: string]: () => angular.IPromise<any>};
controllerAs?: string;
parent?: Function|string|Object; // default: root node
disableParentScroll?: boolean; // default: true
Expand Down Expand Up @@ -53,7 +53,7 @@ declare namespace angular.material {
controller(controller?: string|Function): T;
locals(locals?: {[index: string]: any}): T;
bindToController(bindToController?: boolean): T; // default: false
resolve(resolve?: {[index: string]: angular.IPromise<any>}): T;
resolve(resolve?: {[index: string]: () => angular.IPromise<any>}): T;
controllerAs(controllerAs?: string): T;
parent(parent?: string|Element|JQuery): T; // default: root node
onComplete(onComplete?: Function): T;
Expand Down Expand Up @@ -91,7 +91,7 @@ declare namespace angular.material {
controller?: string|Function;
locals?: {[index: string]: any};
bindToController?: boolean; // default: false
resolve?: {[index: string]: angular.IPromise<any>}
resolve?: {[index: string]: () => angular.IPromise<any>}
controllerAs?: string;
parent?: string|Element|JQuery; // default: root node
onShowing?: Function;
Expand Down Expand Up @@ -165,7 +165,7 @@ declare namespace angular.material {
controller?: string|Function;
locals?: {[index: string]: any};
bindToController?: boolean; // default: false
resolve?: {[index: string]: angular.IPromise<any>}
resolve?: {[index: string]: () => angular.IPromise<any>}
controllerAs?: string;
parent?: string|Element|JQuery; // default: root node
}
Expand Down Expand Up @@ -297,7 +297,7 @@ declare namespace angular.material {
controllerAs?: string;
bindToController?: boolean; // default: true
locals?: {[index: string]: any};
resolve?: {[index: string]: angular.IPromise<any>}
resolve?: {[index: string]: () => angular.IPromise<any>}
attachTo?: string|JQuery|Element;
propagateContainerEvents?: boolean;
panelClass?: string;
Expand Down

0 comments on commit 950ae09

Please sign in to comment.