UNPKG

embla-carousel

Version:

A lightweight carousel library with fluid motion and great swipe precision

11 lines (10 loc) 564 B
import { EmblaCarouselType } from './EmblaCarousel'; import { EventHandlerType } from './EventHandler'; type SlidesHandlerCallbackType = (emblaApi: EmblaCarouselType, mutations: MutationRecord[]) => boolean | void; export type SlidesHandlerOptionType = boolean | SlidesHandlerCallbackType; export type SlidesHandlerType = { init: (emblaApi: EmblaCarouselType) => void; destroy: () => void; }; export declare function SlidesHandler(container: HTMLElement, eventHandler: EventHandlerType, watchSlides: SlidesHandlerOptionType): SlidesHandlerType; export {};