UNPKG

embla-carousel-wheel-gestures

Version:
23 lines (22 loc) 928 B
import { CreateOptionsType } from 'embla-carousel/components/Options'; import { CreatePluginType } from 'embla-carousel/components/Plugins'; export declare type WheelGesturesPluginOptions = CreateOptionsType<{ wheelDraggingClass: string; forceWheelAxis?: 'x' | 'y'; target?: Element; }>; declare type WheelGesturesPluginType = CreatePluginType<{}, WheelGesturesPluginOptions>; export declare function WheelGesturesPlugin(userOptions?: WheelGesturesPluginType['options']): WheelGesturesPluginType; export declare namespace WheelGesturesPlugin { var globalOptions: Partial<CreateOptionsType<CreateOptionsType<{ wheelDraggingClass: string; forceWheelAxis?: "x" | "y" | undefined; target?: Element | undefined; }>>> | undefined; } declare module 'embla-carousel' { interface EmblaPluginsType { wheelGestures?: WheelGesturesPluginType; } } export {};