Vue package - Incorrect types for emblaApi
See original GitHub issueBug is related to
- embla-carousel-vue
Embla Carousel version
- v7.0.2
Describe the bug
The typings are wrong for emblaApi
that are exposed from embla-carousel-vue
package. The current type is:
'EmblaCarouselType | HTMLElement'
Expected behavior
The type should be:
'EmblaCarouselType | null'
Additional context
Thanks @rojadesign for reporting this.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Vue 3 wrapper · Issue #17 · davidjerleke/embla-carousel
@rojadesign yes, this is clearly a TypeScript related bug in the embla-carousel-vue package because the typings are wrong. The type for emblaApi ......
Read more >embla-carousel-react - NPM Package Overview - Socket - Socket.dev
A lightweight carousel library with fluid motion and great swipe precision. Version: 7.0.3 was published by davidjerleke. Start using Socket to analyze ...
Read more >Options - Embla Carousel
Options. Embla Carousel takes various options in order to customize how the carousel works. You can provide options in different ways.
Read more >embla-carousel-react: Versions | Openbase
#366 - Vue package - Incorrect types for emblaApi ... #322 - Breakpoints option; #327 - Expose plugin API:s from the Embla API;...
Read more >TypeScript errors when editing old Vue 3 components but not ...
This release ships TypeScript typings that rely on Template Literal Types and requires TS >= 4.1. Why did question asker run into this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rojadesign, thanks again for reporting this problem 👍🏻.
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