Skip to content

Commit

Permalink
fix(react): fix React 18 compat types
Browse files Browse the repository at this point in the history
fixes #5799
  • Loading branch information
nolimits4web committed Jan 17, 2023
1 parent f986cb0 commit 4c916d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react/swiper-react.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ interface SwiperProps
| 'onKeyPress'
| 'onDoubleClick'
| 'onScroll'
| 'onResize'
> {}
interface SwiperSlideProps extends React.HTMLAttributes<HTMLElement> {}
interface SwiperSlideProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {}

interface SwiperRef extends React.HTMLAttributes<HTMLElement> {
swiper: SwiperClass;
Expand Down

0 comments on commit 4c916d4

Please sign in to comment.