vue-carousel-lite
Version:
Fast, Lightweight Vue Carousel With Touch, Mouse, Keyboard, Wheel & SSR support
45 lines (43 loc) • 1.78 kB
TypeScript
import { CarouselProps } from '../../types/';
interface PaginationProps {
canGoNext: boolean;
canGoPrev: boolean;
totalSlides: number;
itemsToShow: number;
currentIndex: number;
onGoNext: () => void;
onGoPrev: () => void;
visibleSlideIndices: number[];
type: CarouselProps['pagination'];
visibility: CarouselProps['paginationVisibility'];
onGoToSlide: (index: number) => void;
direction: CarouselProps['direction'];
position: CarouselProps['paginationPosition'];
paginationSize?: CarouselProps['paginationSize'];
isPaginationVisible: Record<string, boolean>;
isMouseNearEdge: {
prev: boolean;
next: boolean;
};
}
declare function __VLS_template(): {
"prev-icon"?(_: {}): any;
"next-icon"?(_: {}): any;
};
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PaginationProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PaginationProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};