chore(interface): update componentOnReady() and overlay interface

This commit is contained in:
Adam Bradley
2018-05-25 13:43:06 -05:00
parent 373a97283f
commit 9559f5e42d
15 changed files with 44 additions and 36 deletions

View File

@ -14,8 +14,7 @@ declare global {
namespace JSXElements {}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
componentOnReady(done: (ele?: this) => void): void;
componentOnReady(): Promise<this|null>;
forceUpdate(): void;
}
@ -105,7 +104,7 @@ declare global {
namespace StencilComponents {
interface IonActionSheetController {
'create': (opts?: ActionSheetOptions | undefined) => Promise<HTMLIonActionSheetElement>;
'create': (opts?: ActionSheetOptions | undefined) => Promise<HTMLIonActionSheetElement | null>;
'dismiss': (data?: any, role?: string | undefined, actionSheetId?: number) => Promise<void>;
'getTop': () => HTMLIonActionSheetElement;
}
@ -299,7 +298,7 @@ declare global {
namespace StencilComponents {
interface IonAlertController {
'create': (opts?: AlertOptions | undefined) => Promise<HTMLIonAlertElement>;
'create': (opts?: AlertOptions | undefined) => Promise<HTMLIonAlertElement | null>;
'dismiss': (data?: any, role?: string | undefined, alertId?: number) => Promise<void>;
'getTop': () => HTMLIonAlertElement;
}
@ -3099,7 +3098,7 @@ declare global {
namespace StencilComponents {
interface IonLoadingController {
'create': (opts?: LoadingOptions | undefined) => Promise<HTMLIonLoadingElement>;
'create': (opts?: LoadingOptions | undefined) => Promise<HTMLIonLoadingElement | null>;
'dismiss': (data?: any, role?: string | undefined, loadingId?: number) => Promise<void>;
'getTop': () => HTMLIonLoadingElement;
}
@ -3562,7 +3561,7 @@ declare global {
namespace StencilComponents {
interface IonModalController {
'create': (opts?: ModalOptions | undefined) => Promise<HTMLIonModalElement>;
'create': (opts?: ModalOptions | undefined) => Promise<HTMLIonModalElement | null>;
'dismiss': (data?: any, role?: string | undefined, modalId?: number) => Promise<void>;
'getTop': () => HTMLIonModalElement;
}
@ -3997,7 +3996,7 @@ declare global {
namespace StencilComponents {
interface IonPickerController {
'create': (opts?: PickerOptions | undefined) => Promise<HTMLIonPickerElement>;
'create': (opts?: PickerOptions | undefined) => Promise<HTMLIonPickerElement | null>;
'dismiss': (data?: any, role?: string | undefined, pickerId?: number) => Promise<void>;
'getTop': () => HTMLIonPickerElement;
}
@ -4183,7 +4182,7 @@ declare global {
namespace StencilComponents {
interface IonPopoverController {
'create': (opts?: PopoverOptions | undefined) => Promise<HTMLIonPopoverElement>;
'create': (opts?: PopoverOptions | undefined) => Promise<HTMLIonPopoverElement | null>;
'dismiss': (data?: any, role?: string | undefined, popoverId?: number) => Promise<void>;
'getTop': () => HTMLIonPopoverElement;
}
@ -6914,7 +6913,7 @@ declare global {
namespace StencilComponents {
interface IonToastController {
'create': (opts?: ToastOptions | undefined) => Promise<HTMLIonToastElement>;
'create': (opts?: ToastOptions | undefined) => Promise<HTMLIonToastElement | null>;
'dismiss': (data?: any, role?: string | undefined, toastId?: number) => Promise<void>;
'getTop': () => HTMLIonToastElement;
}