Skip to content

Commit 01858a4

Browse files
fix: type export syntax
1 parent dce30de commit 01858a4

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

refine-nextjs/plugins/shadcn/src/components/ui/carousel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
66
import { ArrowLeft, ArrowRight } from "lucide-react";
77
import * as React from "react";
88

9-
type CarouselApi = UseEmblaCarouselType[1];
9+
export type CarouselApi = UseEmblaCarouselType[1];
1010
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
1111
type CarouselOptions = UseCarouselParameters[0];
1212
type CarouselPlugin = UseCarouselParameters[1];
@@ -230,7 +230,6 @@ function CarouselNext({
230230
}
231231

232232
export {
233-
CarouselApi,
234233
Carousel,
235234
CarouselContent,
236235
CarouselItem,

refine-vite/plugins/shadcn/src/components/ui/carousel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
66
import { ArrowLeft, ArrowRight } from "lucide-react";
77
import * as React from "react";
88

9-
type CarouselApi = UseEmblaCarouselType[1];
9+
export type CarouselApi = UseEmblaCarouselType[1];
1010
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
1111
type CarouselOptions = UseCarouselParameters[0];
1212
type CarouselPlugin = UseCarouselParameters[1];
@@ -230,7 +230,6 @@ function CarouselNext({
230230
}
231231

232232
export {
233-
CarouselApi,
234233
Carousel,
235234
CarouselContent,
236235
CarouselItem,

0 commit comments

Comments
 (0)