mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
feat(all): add CustomEvents types to components that emit events (#23956)
resolves #22925 BREAKING CHANGE: The `RadioChangeEventDetail` interface has been removed in favor of `RadioGroupChangeEventDetail`.
This commit is contained in:
@ -0,0 +1,3 @@
|
||||
export interface InfiniteScrollCustomEvent extends CustomEvent {
|
||||
target: HTMLIonInfiniteScrollElement;
|
||||
}
|
@ -12,6 +12,18 @@ The `ion-infinite-scroll` component has the infinite scroll logic. It requires a
|
||||
|
||||
Separating the `ion-infinite-scroll` and `ion-infinite-scroll-content` components allows developers to create their own content components, if desired. This content can contain anything, from an SVG element to elements with unique CSS animations.
|
||||
|
||||
## Interfaces
|
||||
|
||||
### InfiniteScrollCustomEvent
|
||||
|
||||
While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing with Ionic events emitted from this component.
|
||||
|
||||
```typescript
|
||||
interface InfiniteScrollCustomEvent extends CustomEvent {
|
||||
target: HTMLIonInfiniteScrollElement;
|
||||
}
|
||||
```
|
||||
|
||||
<!-- Auto Generated Below -->
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user