Skip to content

Commit

Permalink
fix(react): types for useSwiper and useSwiperSlide hooks
Browse files Browse the repository at this point in the history
fixes #5413
  • Loading branch information
nolimits4web committed Feb 1, 2022
1 parent 63642a1 commit 2cbf82c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/react/swiper-react.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,7 @@ interface SwiperSlideProps extends React.HTMLAttributes<HTMLElement> {}
declare const Swiper: React.FunctionComponent<SwiperProps>;
declare const SwiperSlide: React.VoidFunctionComponent<SwiperSlideProps>;

export { Swiper, SwiperSlide, SwiperProps, SwiperSlideProps };
declare const useSwiper: () => SwiperClass;
declare const useSwiperSlide: () => SlideData;

export { Swiper, SwiperSlide, SwiperProps, SwiperSlideProps, useSwiper, useSwiperSlide };

0 comments on commit 2cbf82c

Please sign in to comment.