UNPKG

embla-carousel

Version:

A lightweight carousel library with fluid motion and great swipe precision

11 lines (10 loc) 566 B
import { LooseOptionsType, CreateOptionsType } from './Options'; import { WindowType } from './utils'; type OptionsType = Partial<CreateOptionsType<LooseOptionsType>>; export type OptionsHandlerType = { mergeOptions: <TypeA extends OptionsType, TypeB extends OptionsType>(optionsA: TypeA, optionsB?: TypeB) => TypeA; optionsAtMedia: <Type extends OptionsType>(options: Type) => Type; optionsMediaQueries: (optionsList: OptionsType[]) => MediaQueryList[]; }; export declare function OptionsHandler(ownerWindow: WindowType): OptionsHandlerType; export {};