UNPKG

@nanogiants/vue3-longpress

Version:

This package contains a Vue 3 directive which adds the `@longpress` event to an element.

10 lines (9 loc) 377 B
import { ObjectDirective } from 'vue'; declare type BindingValue = number; interface ExtendedDirective extends ObjectDirective<HTMLElement, BindingValue> { pointerdownEvent: (e: PointerEvent) => void; pointerupEvent: (e: PointerEvent) => void; timeout: ReturnType<typeof setTimeout> | null; } export declare const vLongpress: ExtendedDirective; export {};