UNPKG

@yourwishes/carousel

Version:

A modern, flexible and performant carousel for the time concious developer.

39 lines 1.18 kB
import { SliderOptions } from "./options"; import { Slider } from "./slider"; import { SlideList, SlideVisibleResults } from "./slides"; import { SliderState, SliderStateChangeListener } from "./state"; import { DeepPartial } from "utility-types"; export declare type WithSlider = { slider: Slider; }; export declare type WithContainer = { container: HTMLElement; }; export declare type WithContainerRect = { containerRect: DOMRect; }; export declare type WithOptions = { options: SliderOptions; }; export declare type WithOptionsPartial = DeepPartial<WithOptions>; export declare type WithSlides = { slides: SlideList; }; export declare type WithSlideVisibleResults = { results: SlideVisibleResults; }; export declare type WithState = { state: SliderState; }; export declare type WithStateListener<K extends keyof SliderState> = { key: K; listener: SliderStateChangeListener<K>; }; export declare type WithStateKeyValue<K extends keyof SliderState> = { key: K; value: SliderState[K]; }; export declare type WithMouseEvent = { mouseEvent: MouseEvent; }; //# sourceMappingURL=types.d.ts.map