dotting
Version:
Dotting is a pixel art editor component library for react
10 lines (9 loc) • 607 B
TypeScript
export declare function addEvent(el: EventTarget, type: string, fn: EventListener, capturing?: boolean): void;
export declare function removeEvent(el: EventTarget, type: string, fn: EventListener, capturing?: boolean): void;
type MouseType = "mouseup" | "mouseout" | "mousedown" | "mousemove";
export type TouchyEvent = MouseEvent & TouchEvent;
/**
* {@linkcode https://github.com/bevacqua/dragula/blob/e0bcdc72ae8e0b85e17f154957bdd0cc2e2e35db/dragula.js#L498}
*/
export declare function touchy(el: EventTarget, event: Function, type: MouseType, fn: (evt: TouchyEvent) => void): void;
export {};