Skip to content

Commit 6768efe

Browse files
committed
feat(react): export SwiperClass type from 'swiper/react'
fixes #5500
1 parent efc294c commit 6768efe

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/react/swiper-react.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,13 @@ declare const SwiperSlide: React.FunctionComponent<SwiperSlideProps>;
9696
declare const useSwiper: () => SwiperClass;
9797
declare const useSwiperSlide: () => SlideData;
9898

99-
export { Swiper, SwiperSlide, SwiperProps, SwiperSlideProps, SwiperRef, useSwiper, useSwiperSlide };
99+
export {
100+
Swiper,
101+
SwiperSlide,
102+
SwiperProps,
103+
SwiperSlideProps,
104+
SwiperRef,
105+
useSwiper,
106+
useSwiperSlide,
107+
SwiperClass,
108+
};

0 commit comments

Comments
 (0)