davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.94k stars 180 forks source link

[Bug]: export the types #715

Closed omarkhatibco closed 8 months ago

omarkhatibco commented 8 months ago

Hey David, I hope you have a nice day

Version

v8.0.0-rc20

CodeSandbox

No response

What browsers are you seeing the problem on?

No response

Steps to reproduce

I just updated from rc15 to rc20 and I noticed that the exported types where removed

before I was able to import them directly from embla-carousel-react and now I have explicity install and import them from embla-carousel

Expected Behavior

I should be able to import them like this

import { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel-react'

Additional Context

No response

Which variants of Embla Carousel are you using?

Before submitting

preetmishra commented 8 months ago

Hey, @omarkhatibco! I had a similar issue. This helped: https://github.com/davidjerleke/embla-carousel/issues/647.

omarkhatibco commented 8 months ago

@preetmishra thank for mentioning the other issue, I will close this one now