diff --git a/core/api.txt b/core/api.txt index a6f7e89801a..e9086b0e571 100644 --- a/core/api.txt +++ b/core/api.txt @@ -12,8 +12,8 @@ ion-action-sheet,prop,mode,"ios" | "md",undefined,false,false ion-action-sheet,prop,subHeader,string | undefined,undefined,false,false ion-action-sheet,prop,translucent,boolean,false,false,false ion-action-sheet,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise -ion-action-sheet,method,onDidDismiss,onDidDismiss() => Promise> -ion-action-sheet,method,onWillDismiss,onWillDismiss() => Promise> +ion-action-sheet,method,onDidDismiss,onDidDismiss() => Promise> +ion-action-sheet,method,onWillDismiss,onWillDismiss() => Promise> ion-action-sheet,method,present,present() => Promise ion-action-sheet,event,ionActionSheetDidDismiss,OverlayEventDetail,true ion-action-sheet,event,ionActionSheetDidPresent,void,true @@ -58,8 +58,8 @@ ion-alert,prop,mode,"ios" | "md",undefined,false,false ion-alert,prop,subHeader,string | undefined,undefined,false,false ion-alert,prop,translucent,boolean,false,false,false ion-alert,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise -ion-alert,method,onDidDismiss,onDidDismiss() => Promise> -ion-alert,method,onWillDismiss,onWillDismiss() => Promise> +ion-alert,method,onDidDismiss,onDidDismiss() => Promise> +ion-alert,method,onWillDismiss,onWillDismiss() => Promise> ion-alert,method,present,present() => Promise ion-alert,event,ionAlertDidDismiss,OverlayEventDetail,true ion-alert,event,ionAlertDidPresent,void,true @@ -612,8 +612,8 @@ ion-loading,prop,showBackdrop,boolean,true,false,false ion-loading,prop,spinner,"bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-small" | null | undefined,undefined,false,false ion-loading,prop,translucent,boolean,false,false,false ion-loading,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise -ion-loading,method,onDidDismiss,onDidDismiss() => Promise> -ion-loading,method,onWillDismiss,onWillDismiss() => Promise> +ion-loading,method,onDidDismiss,onDidDismiss() => Promise> +ion-loading,method,onWillDismiss,onWillDismiss() => Promise> ion-loading,method,present,present() => Promise ion-loading,event,ionLoadingDidDismiss,OverlayEventDetail,true ion-loading,event,ionLoadingDidPresent,void,true @@ -695,8 +695,8 @@ ion-modal,prop,presentingElement,HTMLElement | undefined,undefined,false,false ion-modal,prop,showBackdrop,boolean,true,false,false ion-modal,prop,swipeToClose,boolean,false,false,false ion-modal,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise -ion-modal,method,onDidDismiss,onDidDismiss() => Promise> -ion-modal,method,onWillDismiss,onWillDismiss() => Promise> +ion-modal,method,onDidDismiss,onDidDismiss() => Promise> +ion-modal,method,onWillDismiss,onWillDismiss() => Promise> ion-modal,method,present,present() => Promise ion-modal,event,ionModalDidDismiss,OverlayEventDetail,true ion-modal,event,ionModalDidPresent,void,true @@ -761,8 +761,8 @@ ion-picker,prop,mode,"ios" | "md",undefined,false,false ion-picker,prop,showBackdrop,boolean,true,false,false ion-picker,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise ion-picker,method,getColumn,getColumn(name: string) => Promise -ion-picker,method,onDidDismiss,onDidDismiss() => Promise> -ion-picker,method,onWillDismiss,onWillDismiss() => Promise> +ion-picker,method,onDidDismiss,onDidDismiss() => Promise> +ion-picker,method,onWillDismiss,onWillDismiss() => Promise> ion-picker,method,present,present() => Promise ion-picker,event,ionPickerDidDismiss,OverlayEventDetail,true ion-picker,event,ionPickerDidPresent,void,true @@ -796,8 +796,8 @@ ion-popover,prop,mode,"ios" | "md",undefined,false,false ion-popover,prop,showBackdrop,boolean,true,false,false ion-popover,prop,translucent,boolean,false,false,false ion-popover,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise -ion-popover,method,onDidDismiss,onDidDismiss() => Promise> -ion-popover,method,onWillDismiss,onWillDismiss() => Promise> +ion-popover,method,onDidDismiss,onDidDismiss() => Promise> +ion-popover,method,onWillDismiss,onWillDismiss() => Promise> ion-popover,method,present,present() => Promise ion-popover,event,ionPopoverDidDismiss,OverlayEventDetail,true ion-popover,event,ionPopoverDidPresent,void,true @@ -1242,8 +1242,8 @@ ion-toast,prop,mode,"ios" | "md",undefined,false,false ion-toast,prop,position,"bottom" | "middle" | "top",'bottom',false,false ion-toast,prop,translucent,boolean,false,false,false ion-toast,method,dismiss,dismiss(data?: any, role?: string | undefined) => Promise -ion-toast,method,onDidDismiss,onDidDismiss() => Promise> -ion-toast,method,onWillDismiss,onWillDismiss() => Promise> +ion-toast,method,onDidDismiss,onDidDismiss() => Promise> +ion-toast,method,onWillDismiss,onWillDismiss() => Promise> ion-toast,method,present,present() => Promise ion-toast,event,ionToastDidDismiss,OverlayEventDetail,true ion-toast,event,ionToastDidPresent,void,true diff --git a/core/src/components.d.ts b/core/src/components.d.ts index e9f5bafb514..7e7f7e21f6c 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -55,11 +55,11 @@ export namespace Components { /** * Returns a promise that resolves when the action sheet did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the action sheet will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * Present the action sheet overlay after it has been created. @@ -128,11 +128,11 @@ export namespace Components { /** * Returns a promise that resolves when the alert did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the alert will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * Present the alert overlay after it has been created. @@ -1159,11 +1159,11 @@ export namespace Components { /** * Returns a promise that resolves when the loading did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the loading will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * Present the loading overlay after it has been created. @@ -1315,11 +1315,11 @@ export namespace Components { /** * Returns a promise that resolves when the modal did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the modal will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * Present the modal overlay after it has been created. @@ -1528,11 +1528,11 @@ export namespace Components { /** * Returns a promise that resolves when the picker did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the picker will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * Present the picker overlay after it has been created. @@ -1600,11 +1600,11 @@ export namespace Components { /** * Returns a promise that resolves when the popover did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the popover will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * Present the popover overlay after it has been created. @@ -2510,11 +2510,11 @@ export namespace Components { /** * Returns a promise that resolves when the toast did dismiss. */ - "onDidDismiss": () => Promise>; + "onDidDismiss": () => Promise>; /** * Returns a promise that resolves when the toast will dismiss. */ - "onWillDismiss": () => Promise>; + "onWillDismiss": () => Promise>; "overlayIndex": number; /** * The position of the toast on the screen. diff --git a/core/src/components/action-sheet/action-sheet.tsx b/core/src/components/action-sheet/action-sheet.tsx index 6c2b132b944..38e67459b1d 100644 --- a/core/src/components/action-sheet/action-sheet.tsx +++ b/core/src/components/action-sheet/action-sheet.tsx @@ -139,7 +139,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the action sheet did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionActionSheetDidDismiss'); } @@ -148,7 +148,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface { * */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionActionSheetWillDismiss'); } diff --git a/core/src/components/action-sheet/readme.md b/core/src/components/action-sheet/readme.md index ff904354144..62988a68eff 100644 --- a/core/src/components/action-sheet/readme.md +++ b/core/src/components/action-sheet/readme.md @@ -381,23 +381,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the action sheet did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the action sheet will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/alert/alert.tsx b/core/src/components/alert/alert.tsx index d9daeecd4db..632e09436f7 100644 --- a/core/src/components/alert/alert.tsx +++ b/core/src/components/alert/alert.tsx @@ -224,7 +224,7 @@ export class Alert implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the alert did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionAlertDidDismiss'); } @@ -232,7 +232,7 @@ export class Alert implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the alert will dismiss. */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionAlertWillDismiss'); } diff --git a/core/src/components/alert/readme.md b/core/src/components/alert/readme.md index 36a2f3845ec..4c3f3f13ba4 100644 --- a/core/src/components/alert/readme.md +++ b/core/src/components/alert/readme.md @@ -1410,23 +1410,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the alert did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the alert will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/loading/loading.tsx b/core/src/components/loading/loading.tsx index 70a88bdc372..ed028ac1857 100644 --- a/core/src/components/loading/loading.tsx +++ b/core/src/components/loading/loading.tsx @@ -162,7 +162,7 @@ export class Loading implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the loading did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionLoadingDidDismiss'); } @@ -170,7 +170,7 @@ export class Loading implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the loading will dismiss. */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionLoadingWillDismiss'); } diff --git a/core/src/components/loading/readme.md b/core/src/components/loading/readme.md index a02ec87c582..58faecb2d42 100644 --- a/core/src/components/loading/readme.md +++ b/core/src/components/loading/readme.md @@ -307,23 +307,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the loading did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the loading will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/modal/modal.tsx b/core/src/components/modal/modal.tsx index 6907b262e58..0ef2eacb0a7 100644 --- a/core/src/components/modal/modal.tsx +++ b/core/src/components/modal/modal.tsx @@ -227,7 +227,7 @@ export class Modal implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the modal did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionModalDidDismiss'); } @@ -235,7 +235,7 @@ export class Modal implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the modal will dismiss. */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionModalWillDismiss'); } diff --git a/core/src/components/modal/readme.md b/core/src/components/modal/readme.md index 47b89200c2d..8f8564731d7 100644 --- a/core/src/components/modal/readme.md +++ b/core/src/components/modal/readme.md @@ -644,23 +644,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the modal did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the modal will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/picker/picker.tsx b/core/src/components/picker/picker.tsx index 5ff5435c5d4..cb793c887d9 100644 --- a/core/src/components/picker/picker.tsx +++ b/core/src/components/picker/picker.tsx @@ -137,7 +137,7 @@ export class Picker implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the picker did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionPickerDidDismiss'); } @@ -145,7 +145,7 @@ export class Picker implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the picker will dismiss. */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionPickerWillDismiss'); } diff --git a/core/src/components/picker/readme.md b/core/src/components/picker/readme.md index 392c6dbbb32..0e7513a954f 100644 --- a/core/src/components/picker/readme.md +++ b/core/src/components/picker/readme.md @@ -56,23 +56,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the picker did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the picker will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/popover/popover.tsx b/core/src/components/popover/popover.tsx index bda5f4628b0..f658cc74e02 100644 --- a/core/src/components/popover/popover.tsx +++ b/core/src/components/popover/popover.tsx @@ -159,7 +159,7 @@ export class Popover implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the popover did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionPopoverDidDismiss'); } @@ -167,7 +167,7 @@ export class Popover implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the popover will dismiss. */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionPopoverWillDismiss'); } diff --git a/core/src/components/popover/readme.md b/core/src/components/popover/readme.md index dfa88dc641b..115786ccc05 100644 --- a/core/src/components/popover/readme.md +++ b/core/src/components/popover/readme.md @@ -214,23 +214,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the popover did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the popover will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/toast/readme.md b/core/src/components/toast/readme.md index 4cf57087d70..b32869dd30b 100644 --- a/core/src/components/toast/readme.md +++ b/core/src/components/toast/readme.md @@ -257,23 +257,23 @@ Type: `Promise` -### `onDidDismiss() => Promise>` +### `onDidDismiss() => Promise>` Returns a promise that resolves when the toast did dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` -### `onWillDismiss() => Promise>` +### `onWillDismiss() => Promise>` Returns a promise that resolves when the toast will dismiss. #### Returns -Type: `Promise>` +Type: `Promise>` diff --git a/core/src/components/toast/toast.tsx b/core/src/components/toast/toast.tsx index dfd05d89843..2b97eca3490 100644 --- a/core/src/components/toast/toast.tsx +++ b/core/src/components/toast/toast.tsx @@ -159,7 +159,7 @@ export class Toast implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the toast did dismiss. */ @Method() - onDidDismiss(): Promise { + onDidDismiss(): Promise> { return eventMethod(this.el, 'ionToastDidDismiss'); } @@ -167,7 +167,7 @@ export class Toast implements ComponentInterface, OverlayInterface { * Returns a promise that resolves when the toast will dismiss. */ @Method() - onWillDismiss(): Promise { + onWillDismiss(): Promise> { return eventMethod(this.el, 'ionToastWillDismiss'); }