index.d.ts 469 B

1234567891011
  1. import type { ObjectDirective } from 'vue';
  2. import type { NormalizedWheelEvent } from 'normalize-wheel-es';
  3. export declare const SCOPE = "_Mousewheel";
  4. interface WheelElement extends HTMLElement {
  5. [SCOPE]: null | {
  6. wheelHandler?: (event: WheelEvent) => void;
  7. };
  8. }
  9. type MousewheelCallback = (e: WheelEvent, normalized: NormalizedWheelEvent) => void;
  10. declare const Mousewheel: ObjectDirective<WheelElement, MousewheelCallback>;
  11. export default Mousewheel;