diff --git a/src/angular/src/swiper-events.ts b/src/angular/src/swiper-events.ts index 5b1bd9b56..efe822963 100644 --- a/src/angular/src/swiper-events.ts +++ b/src/angular/src/swiper-events.ts @@ -1,5 +1,5 @@ import { SwiperEvents } from 'swiper/types'; -export type EventsParams = { - [Property in keyof SwiperEvents]: Parameters; +export type EventsParams = { + [P in keyof T]: T[P] extends (...args: any[]) => any ? Parameters : never; };