chore(): fix framworkdelegate type

This commit is contained in:
Liam DeBeasi
2023-03-01 11:30:18 -05:00
parent 044ed14f4b
commit ae8c57ead6
2 changed files with 14 additions and 11 deletions

View File

@ -6,7 +6,7 @@
*/
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
import { AccordionGroupChangeEventDetail } from "./components/accordion-group/accordion-group-interface";
import { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, OverlayEventDetail as OverlayEventDetail1, StyleEventDetail, TextFieldTypes } from "./interface";
import { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, StyleEventDetail, TextFieldTypes } from "./interface";
import { ActionSheetButton } from "./components/action-sheet/action-sheet-interface";
import { OverlayEventDetail } from "./utils/overlays-interface";
import { IonicSafeString } from "./utils/sanitization";
@ -39,10 +39,11 @@ import { SelectChangeEventDetail, SelectCompareFn, SelectInterface } from "./com
import { SelectPopoverOption } from "./components/select-popover/select-popover-interface";
import { TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout } from "./components/tab-bar/tab-bar-interface";
import { TextareaChangeEventDetail, TextareaInputEventDetail } from "./components/textarea/textarea-interface";
import { FrameworkDelegate as FrameworkDelegate1 } from "./utils/overlays";
import { ToastButton, ToastLayout, ToastPosition } from "./components/toast/toast-interface";
import { ToggleChangeEventDetail } from "./components/toggle/toggle-interface";
export { AccordionGroupChangeEventDetail } from "./components/accordion-group/accordion-group-interface";
export { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, OverlayEventDetail as OverlayEventDetail1, StyleEventDetail, TextFieldTypes } from "./interface";
export { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, StyleEventDetail, TextFieldTypes } from "./interface";
export { ActionSheetButton } from "./components/action-sheet/action-sheet-interface";
export { OverlayEventDetail } from "./utils/overlays-interface";
export { IonicSafeString } from "./utils/sanitization";
@ -75,6 +76,7 @@ export { SelectChangeEventDetail, SelectCompareFn, SelectInterface } from "./com
export { SelectPopoverOption } from "./components/select-popover/select-popover-interface";
export { TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout } from "./components/tab-bar/tab-bar-interface";
export { TextareaChangeEventDetail, TextareaInputEventDetail } from "./components/textarea/textarea-interface";
export { FrameworkDelegate as FrameworkDelegate1 } from "./utils/overlays";
export { ToastButton, ToastLayout, ToastPosition } from "./components/toast/toast-interface";
export { ToggleChangeEventDetail } from "./components/toggle/toggle-interface";
export namespace Components {
@ -3073,7 +3075,7 @@ export namespace Components {
* Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces.
*/
"cssClass"?: string | string[];
"delegate"?: FrameworkDelegate;
"delegate"?: FrameworkDelegate1;
/**
* Dismiss the toast overlay after it has been presented.
* @param data Any data to emit in the dismiss events.
@ -3128,11 +3130,11 @@ export namespace Components {
/**
* Returns a promise that resolves when the toast did dismiss.
*/
"onDidDismiss": <T = any>() => Promise<OverlayEventDetail1<T>>;
"onDidDismiss": <T = any>() => Promise<OverlayEventDetail<T>>;
/**
* Returns a promise that resolves when the toast will dismiss.
*/
"onWillDismiss": <T = any>() => Promise<OverlayEventDetail1<T>>;
"onWillDismiss": <T = any>() => Promise<OverlayEventDetail<T>>;
"overlayIndex": number;
/**
* The position of the toast on the screen.
@ -7175,7 +7177,7 @@ declare namespace LocalJSX {
* Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces.
*/
"cssClass"?: string | string[];
"delegate"?: FrameworkDelegate;
"delegate"?: FrameworkDelegate1;
/**
* How many milliseconds to wait before hiding the toast. By default, it will show until `dismiss()` is called.
*/
@ -7224,7 +7226,7 @@ declare namespace LocalJSX {
/**
* Emitted after the toast has dismissed. Shorthand for ionToastDidDismiss.
*/
"onDidDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail1>) => void;
"onDidDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail>) => void;
/**
* Emitted after the toast has presented. Shorthand for ionToastWillDismiss.
*/
@ -7232,7 +7234,7 @@ declare namespace LocalJSX {
/**
* Emitted after the toast has dismissed.
*/
"onIonToastDidDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail1>) => void;
"onIonToastDidDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail>) => void;
/**
* Emitted after the toast has presented.
*/
@ -7240,7 +7242,7 @@ declare namespace LocalJSX {
/**
* Emitted before the toast has dismissed.
*/
"onIonToastWillDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail1>) => void;
"onIonToastWillDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail>) => void;
/**
* Emitted before the toast has presented.
*/
@ -7248,7 +7250,7 @@ declare namespace LocalJSX {
/**
* Emitted before the toast has dismissed. Shorthand for ionToastWillDismiss.
*/
"onWillDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail1>) => void;
"onWillDismiss"?: (event: IonToastCustomEvent<OverlayEventDetail>) => void;
/**
* Emitted before the toast has presented. Shorthand for ionToastWillPresent.
*/

View File

@ -3,8 +3,9 @@ import { Watch, Component, Element, Event, h, Host, Method, Prop } from '@stenci
import { config } from '../../global/config';
import { getIonMode } from '../../global/ionic-global';
import type { AnimationBuilder, Color, CssClassMap, OverlayEventDetail, OverlayInterface } from '../../interface';
import type { AnimationBuilder, Color, CssClassMap, OverlayInterface } from '../../interface';
import { printIonWarning } from '../../utils/logging';
import type { FrameworkDelegate } from '../../utils/overlays';
import {
createDelegateController,
createTriggerController,