You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Vue with Swiper Element and define SwiperOptions in my vue setup using SwiperOptions Type form swiper/types. Then I use v-bind to pass the attributes as props. thumbs.swiper requires the type Swiper | null, so passing a CSS Selector obviously throws the following type error: Type 'string' is not assignable to type 'Swiper'., but the thumbs do work.
So the thumbs.swiper type should be Swiper | string | null instead.
This may also effect other options.
Check that this is really a bug
Reproduction link
Bug description
I'm using Vue with Swiper Element and define SwiperOptions in my vue setup using
SwiperOptions
Type formswiper/types
. Then I use v-bind to pass the attributes as props.thumbs.swiper
requires the typeSwiper | null
, so passing a CSS Selector obviously throws the following type error:Type 'string' is not assignable to type 'Swiper'.
, but the thumbs do work.So the
thumbs.swiper
type should beSwiper | string | null
instead.This may also effect other options.
Expected Behavior
No response
Actual Behavior
No response
Swiper version
11.0.6
Platform/Target and Browser Versions
all
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: