UNPKG

@splidejs/svelte-splide

Version:

Svelte component for the Splide slider/carousel.

17 lines (16 loc) 515 B
import type { SlideComponent, Splide } from '@splidejs/splide'; export declare type EventDetail<T extends Record<string, unknown> = Record<string, unknown>> = { splide: Splide; } & T; export declare type SlideEventDetail = EventDetail<{ Slide: SlideComponent; }>; export declare type ArrowsEventDetail = EventDetail<{ prev: HTMLButtonElement; next: HTMLButtonElement; }>; export declare type MoveEventDetail = EventDetail<{ index: number; prev: number; dest: number; }>;