Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding typings file to fix #3916 #4138

Closed
wants to merge 1 commit into from
Closed

Adding typings file to fix #3916 #4138

wants to merge 1 commit into from

Conversation

GerryWilko
Copy link

@GerryWilko GerryWilko commented Jan 25, 2021

This initial typings file will allow the package to be used with Vue Typescript projects and use the Swiper and SwiperSlide as components.

Fixes #3916

This initial typings file will allow the package to be used with Vue Typescript projects and use the Swiper and SwiperSlide as components.
@nolimits4web
Copy link
Owner

Is it compatible with Vue.js v3 ?

@GerryWilko
Copy link
Author

GerryWilko commented Jan 26, 2021

Yeah should be because it doesn't really care what version the NPM Vue library is. Does swiper's Vue library support v3 though? The api for components has changed significantly and its not backwards compatible.

@nolimits4web
Copy link
Owner

nolimits4web commented Jan 26, 2021

Swiper compatible ONLY with Vue 3 https://swiperjs.com/vue. Seems like these typings are not valid for Vue 3, because Vue 3 doesn't have default export

@GerryWilko
Copy link
Author

I use this typings file with Vue 2 so Swiper is compatible with Vue 2. Let me do some investigating and see how I can make it work for both.

@vltansky
Copy link
Collaborator

vltansky commented Mar 8, 2021

@GerryWilko hey, any updates?

@vltansky
Copy link
Collaborator

types added here #4707. Closing the PR.

@vltansky vltansky closed this Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

swiper/vue missing type declarations
3 participants