mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 04:19:26 +00:00
docs: fix vue example
This commit is contained in:
26
examples/nuxt-example/components/ui/carousel/interface.ts
Normal file
26
examples/nuxt-example/components/ui/carousel/interface.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { HTMLAttributes, UnwrapRef } from 'vue'
|
||||
import type useEmblaCarousel from 'embla-carousel-vue'
|
||||
import type {
|
||||
EmblaCarouselVueType,
|
||||
} from 'embla-carousel-vue'
|
||||
|
||||
type CarouselApi = EmblaCarouselVueType[1]
|
||||
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>
|
||||
type CarouselOptions = UseCarouselParameters[0]
|
||||
type CarouselPlugin = UseCarouselParameters[1]
|
||||
|
||||
export type UnwrapRefCarouselApi = UnwrapRef<CarouselApi>
|
||||
|
||||
export interface CarouselProps {
|
||||
opts?: CarouselOptions
|
||||
plugins?: CarouselPlugin
|
||||
orientation?: 'horizontal' | 'vertical'
|
||||
}
|
||||
|
||||
export interface CarouselEmits {
|
||||
(e: 'init-api', payload: UnwrapRefCarouselApi): void
|
||||
}
|
||||
|
||||
export interface WithClassAsProps {
|
||||
class?: HTMLAttributes['class']
|
||||
}
|
||||
Reference in New Issue
Block a user