fix(overlays): OverlayController interface

This commit is contained in:
Manu Mtz.-Almeida
2018-03-13 19:45:36 +01:00
parent cc4fecc1be
commit 6e2ca85b2a
12 changed files with 25 additions and 38 deletions

View File

@@ -200,6 +200,12 @@ export interface OverlayInterface {
dismiss(data?: any, role?: string): Promise<void>;
}
export interface OverlayController {
create(opts?: any): Promise<HTMLElement>;
dismiss(data?: any, role?: string, alertId?: number): Promise<void>;
getTop(): HTMLElement;
}
export interface HTMLIonOverlayElement extends HTMLStencilElement, OverlayInterface {}
export type OverlayMap = Map<number, HTMLIonOverlayElement>;