index.d.ts 661 B

1234567891011121314151617181920
  1. import { ObjectDirective } from "vue";
  2. //#region ../../packages/directives/repeat-click/index.d.ts
  3. declare const REPEAT_INTERVAL = 100;
  4. declare const REPEAT_DELAY = 600;
  5. declare const SCOPE = "_RepeatClick";
  6. interface RepeatClickEl extends HTMLElement {
  7. [SCOPE]: null | {
  8. start?: (evt: MouseEvent) => void;
  9. clear?: () => void;
  10. };
  11. }
  12. interface RepeatClickOptions {
  13. interval?: number;
  14. delay?: number;
  15. handler: (...args: unknown[]) => unknown;
  16. }
  17. declare const vRepeatClick: ObjectDirective<RepeatClickEl, RepeatClickOptions | RepeatClickOptions['handler']>;
  18. //#endregion
  19. export { REPEAT_DELAY, REPEAT_INTERVAL, RepeatClickOptions, vRepeatClick };