mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
revert: type change for ionSwipe event
Ran into an issue with the generated output from the Angular output target. Need to fix the behavior there first.
This commit is contained in:
@@ -699,7 +699,7 @@ ion-item-option,part,native
|
||||
|
||||
ion-item-options,none
|
||||
ion-item-options,prop,side,"end" | "start",'end',false,false
|
||||
ion-item-options,event,ionSwipe,{ side: Side; },true
|
||||
ion-item-options,event,ionSwipe,any,true
|
||||
|
||||
ion-item-sliding,none
|
||||
ion-item-sliding,prop,animationType,"legacy" | "modern",'modern',false,false
|
||||
|
||||
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@@ -3872,7 +3872,7 @@ declare global {
|
||||
new (): HTMLIonItemOptionElement;
|
||||
};
|
||||
interface HTMLIonItemOptionsElementEventMap {
|
||||
"ionSwipe": { side: Side };
|
||||
"ionSwipe": any;
|
||||
}
|
||||
interface HTMLIonItemOptionsElement extends Components.IonItemOptions, HTMLStencilElement {
|
||||
addEventListener<K extends keyof HTMLIonItemOptionsElementEventMap>(type: K, listener: (this: HTMLIonItemOptionsElement, ev: IonItemOptionsCustomEvent<HTMLIonItemOptionsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
||||
@@ -6186,7 +6186,7 @@ declare namespace LocalJSX {
|
||||
/**
|
||||
* Emitted when the item has been fully swiped.
|
||||
*/
|
||||
"onIonSwipe"?: (event: IonItemOptionsCustomEvent<{ side: Side }>) => void;
|
||||
"onIonSwipe"?: (event: IonItemOptionsCustomEvent<any>) => void;
|
||||
/**
|
||||
* The side the option button should be on. Possible values: `"start"` and `"end"`. If you have multiple `ion-item-options`, a side must be provided for each.
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@ export class ItemOptions implements ComponentInterface {
|
||||
/**
|
||||
* Emitted when the item has been fully swiped.
|
||||
*/
|
||||
@Event() ionSwipe!: EventEmitter<{ side: Side }>;
|
||||
@Event() ionSwipe!: EventEmitter<any>; // TODO(FW-2832): type
|
||||
|
||||
/** @internal */
|
||||
@Method()
|
||||
|
||||
@@ -1121,13 +1121,11 @@ export class IonItemOptions {
|
||||
}
|
||||
|
||||
|
||||
import type { Side as IIonItemOptionsSide } from '@ionic/core';
|
||||
|
||||
export declare interface IonItemOptions extends Components.IonItemOptions {
|
||||
/**
|
||||
* Emitted when the item has been fully swiped.
|
||||
*/
|
||||
ionSwipe: EventEmitter<CustomEvent<IIonItemOptions{ side: IIonItemOptionsSide }>>;
|
||||
ionSwipe: EventEmitter<CustomEvent<any>>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1093,13 +1093,11 @@ export class IonItemOptions {
|
||||
}
|
||||
|
||||
|
||||
import type { Side as IIonItemOptionsSide } from '@ionic/core/components';
|
||||
|
||||
export declare interface IonItemOptions extends Components.IonItemOptions {
|
||||
/**
|
||||
* Emitted when the item has been fully swiped.
|
||||
*/
|
||||
ionSwipe: EventEmitter<CustomEvent<IIonItemOptions{ side: IIonItemOptionsSide }>>;
|
||||
ionSwipe: EventEmitter<CustomEvent<any>>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user