Skip to content

Commit

Permalink
fix(angular): swiper angular event (#5462)
Browse files Browse the repository at this point in the history
  • Loading branch information
vltansky authored Feb 11, 2022
1 parent 31d223d commit adc99a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/angular/src/swiper-events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SwiperEvents } from 'swiper/types';

export type EventsParams = {
[Property in keyof SwiperEvents]: Parameters<SwiperEvents[Property]>;
export type EventsParams<T = SwiperEvents> = {
[P in keyof T]: T[P] extends (...args: any[]) => any ? Parameters<T[P]> : never;
};

0 comments on commit adc99a5

Please sign in to comment.