diff --git a/packages/embla-carousel-react/src/components/useEmblaCarousel.ts b/packages/embla-carousel-react/src/components/useEmblaCarousel.ts index 4b673a066..83f7a96c3 100644 --- a/packages/embla-carousel-react/src/components/useEmblaCarousel.ts +++ b/packages/embla-carousel-react/src/components/useEmblaCarousel.ts @@ -10,7 +10,7 @@ import EmblaCarousel, { EmblaPluginType } from 'embla-carousel' -type EmblaViewportRefType = ( +export type EmblaViewportRefType = ( instance: ViewportElement | null ) => void diff --git a/packages/embla-carousel-react/src/index.ts b/packages/embla-carousel-react/src/index.ts index 5e66d75fd..9ccc16e60 100644 --- a/packages/embla-carousel-react/src/index.ts +++ b/packages/embla-carousel-react/src/index.ts @@ -1,2 +1,5 @@ -export { UseEmblaCarouselType } from './components/useEmblaCarousel' +export { + UseEmblaCarouselType, + EmblaViewportRefType +} from './components/useEmblaCarousel' export { default } from './components/useEmblaCarousel'