index.d.ts 574 B

1234567891011121314151617
  1. import type { ObjectDirective } from 'vue';
  2. export declare const REPEAT_INTERVAL = 100;
  3. export declare const REPEAT_DELAY = 600;
  4. declare const SCOPE = "_RepeatClick";
  5. interface RepeatClickEl extends HTMLElement {
  6. [SCOPE]: null | {
  7. start?: (evt: MouseEvent) => void;
  8. clear?: () => void;
  9. };
  10. }
  11. export interface RepeatClickOptions {
  12. interval?: number;
  13. delay?: number;
  14. handler: (...args: unknown[]) => unknown;
  15. }
  16. export declare const vRepeatClick: ObjectDirective<RepeatClickEl, RepeatClickOptions | RepeatClickOptions['handler']>;
  17. export {};