Updated service options object to remove invalid properties and add missing properties. Updated via overloading service to include optional async instance lookup.

This commit is contained in:
Alex Staroselsky
2016-07-18 22:25:08 -05:00
parent 74a3e8c937
commit 0e5388394d
2 changed files with 20 additions and 6 deletions
+7 -5
View File
@@ -1,4 +1,4 @@
// Type definitions for Angular Material 1.0.0-rc5+ (angular.material module)
// Type definitions for Angular Material 1.1.0-rc5+ (angular.material module)
// Project: https://github.com/angular/material
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -19,11 +19,12 @@ declare namespace angular.material {
preserveScope?: boolean; // default: false
controller?: string|Function;
locals?: {[index: string]: any};
targetEvent?: MouseEvent;
resolve?: {[index: string]: angular.IPromise<any>}
clickOutsideToClose?: boolean;
disableBackdrop?: boolean;
escapeToClose?: boolean;
resolve?: {[index: string]: angular.IPromise<any>};
controllerAs?: string;
bindToController?: boolean;
parent?: string|Element|JQuery; // default: root node
parent?: Function|string|Object; // default: root node
disableParentScroll?: boolean; // default: true
}
@@ -134,6 +135,7 @@ declare namespace angular.material {
}
interface ISidenavService {
(component: string, enableWait: boolean): angular.IPromise<ISidenavObject>;
(component: string): ISidenavObject;
}