Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import { EmblaCarouselType } from './EmblaCarousel';
type CallbackType = (emblaApi: EmblaCarouselType, evt: EmblaEventType) => void;
export type EmblaEventType = EmblaEventListType[keyof EmblaEventListType];
export interface EmblaEventListType {
init: 'init';
pointerDown: 'pointerDown';
pointerUp: 'pointerUp';
slidesChanged: 'slidesChanged';
slidesInView: 'slidesInView';
scroll: 'scroll';
select: 'select';
settle: 'settle';
destroy: 'destroy';
reInit: 'reInit';
resize: 'resize';
slideFocusStart: 'slideFocusStart';
slideFocus: 'slideFocus';
}
export type EventHandlerType = {
init: (emblaApi: EmblaCarouselType) => void;
emit: (evt: EmblaEventType) => EventHandlerType;
on: (evt: EmblaEventType, cb: CallbackType) => EventHandlerType;
off: (evt: EmblaEventType, cb: CallbackType) => EventHandlerType;
clear: () => void;
};
export declare function EventHandler(): EventHandlerType;
export {};