Skip to content

Commit

Permalink
Merge pull request #947 from junlarsen/fix/export-react-type
Browse files Browse the repository at this point in the history
fix(react): export EmblaViewportRefType from bundle
  • Loading branch information
davidjerleke committed Jul 23, 2024
2 parents 9d1cc8a + 532541d commit 79d243c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import EmblaCarousel, {
EmblaPluginType
} from 'embla-carousel'

type EmblaViewportRefType = <ViewportElement extends HTMLElement>(
export type EmblaViewportRefType = <ViewportElement extends HTMLElement>(
instance: ViewportElement | null
) => void

Expand Down
5 changes: 4 additions & 1 deletion packages/embla-carousel-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
export { UseEmblaCarouselType } from './components/useEmblaCarousel'
export {
UseEmblaCarouselType,
EmblaViewportRefType
} from './components/useEmblaCarousel'
export { default } from './components/useEmblaCarousel'

0 comments on commit 79d243c

Please sign in to comment.