mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Update MdPanel in angular-material.d.ts file
Adds interceptor logic and updates offsetX and offsetY to accept new param types.
This commit is contained in:
10
angular-material/angular-material.d.ts
vendored
10
angular-material/angular-material.d.ts
vendored
@@ -355,6 +355,9 @@ declare namespace angular.material {
|
||||
removeClass(oldClass: string): void;
|
||||
toggleClass(toggleClass: string): void;
|
||||
updatePosition(position: IPanelPosition): void;
|
||||
registerInterceptor(type: string, callback: () => angular.IPromise<any>): IPanelRef;
|
||||
removeInterceptor(type: string, callback: () => angular.IPromise<any>): IPanelRef;
|
||||
removeAllInterceptors(type?: string): IPanelRef;
|
||||
}
|
||||
|
||||
interface IPanelPosition {
|
||||
@@ -370,8 +373,8 @@ declare namespace angular.material {
|
||||
centerVertically(): IPanelPosition;
|
||||
center(): IPanelPosition;
|
||||
addPanelPosition(xPosition: string, yPosition: string): IPanelPosition;
|
||||
withOffsetX(offsetX: string): IPanelPosition;
|
||||
withOffsetY(offsetY: string): IPanelPosition;
|
||||
withOffsetX(offsetX: string|((panel: IPanelPosition) => string)): IPanelPosition;
|
||||
withOffsetY(offsetY: string|((panel: IPanelPosition) => string)): IPanelPosition;
|
||||
}
|
||||
|
||||
interface IPanelAnimation {
|
||||
@@ -404,5 +407,8 @@ declare namespace angular.material {
|
||||
SCALE: string,
|
||||
FADE: string,
|
||||
};
|
||||
interceptorTypes: {
|
||||
CLOSE: string,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user