From 532541dfce8f5935f1db737398d70d0f12754ce5 Mon Sep 17 00:00:00 2001 From: Mats Larsen Date: Sat, 20 Jul 2024 23:12:03 +0200 Subject: [PATCH] fix(react): export EmblaViewportRefType from bundle --- .../embla-carousel-react/src/components/useEmblaCarousel.ts | 2 +- packages/embla-carousel-react/src/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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'