vuestic-ui
Version:
Vue 3 UI Framework
12 lines (11 loc) • 427 B
TypeScript
import { Ref, ShallowRef } from 'vue';
type MaybeRef<T> = Ref<T> | T;
interface LongPressOptions {
onStart: (ev: KeyboardEvent) => void;
onEnd: (ev: KeyboardEvent) => void;
onUpdate: (ev: KeyboardEvent | FocusEvent) => void;
delay?: MaybeRef<number>;
interval?: number;
}
export declare function useLongPressKey(el: ShallowRef<HTMLElement | undefined>, options: Partial<LongPressOptions>): void;
export {};