Skip to content

Commit

Permalink
fix(docs): Incorrect type in Carousel Docs API example (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
create-signal authored Sep 30, 2024
1 parent fe3aa91 commit 0581dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/src/routes/docs/components/carousel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Use a state and the `setApi` props to get an instance of the carousel API.
import type { CarouselApi } from "~/components/ui/carousel"

export function Example() {
const [api, setApi] = createSignal<CarouselApi>()
const [api, setApi] = createSignal<ReturnType<CarouselApi>>()
const [current, setCurrent] = createSignal(0)
const [count, setCount] = createSignal(0)

Expand Down

0 comments on commit 0581dc6

Please sign in to comment.