typescript types for swiper webcomponents #7825
patrickkmatias
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi 👋🏾
I'm creating a web application using qwik framework and it is based on typescript, so my IDE started complaining about unknown types from swiper elements (
<swiper-container>
).I did some research and I've found only some similar problem with react here, but it didn't help me, so I thought that it would be cool to share with somebody else if you are facing the same trouble.
It happens that swiper has a file with type notations on
swiper/types
directory, so all that I had to do was to extend the baseHTMLElement
class with Swiper's class, and it solved the types problem:=)
Beta Was this translation helpful? Give feedback.
All reactions