Closed davidjerleke closed 1 year ago
@rojadesign I think the types here should be something along these lines:
export type EmblaCarouselVueType = [
Ref<HTMLElement | undefined>,
Ref<EmblaCarouselType | undefined>
]
@davidjerleke exactly, I'm on it and will make a PR!
Hi @rojadesign,
I just released v7.0.3 that includes the fix for this type bug. Please update to the latest version and give it a go. Let me know how it goes.
Thanks for reporting this.
Best, David
@davidjerleke works like a charm, thank you for everything! 🤘🏼
@rojadesign, thanks again for reporting this problem 👍🏻.
Bug is related to
Embla Carousel version
Describe the bug
The typings are wrong for
emblaApi
that are exposed fromembla-carousel-vue
package. The current type is:'EmblaCarouselType | HTMLElement'
Expected behavior
The type should be:
'EmblaCarouselType | null'
Additional context
Thanks @rojadesign for reporting this.