@types/wheel
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Installation

npm install --save @types/wheel

Summary

This package contains type definitions for wheel (https://github.com/anvaka/wheel).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wheel.

index.d.ts

/**
 * Adds a callback to receive mouse wheel events from the given element.
 */
declare function wheel(element: GlobalEventHandlers, callback: (event: WheelEvent) => void, useCapture?: boolean): void;

declare namespace wheel {
    /**
     * Adds a callback to receive mouse wheel events from the given element.
     */
    function addWheelListener(
        element: GlobalEventHandlers,
        callback: (event: WheelEvent) => void,
        useCapture?: boolean,
    ): void;

    /**
     *  Removes a previously added wheel listener callback.
     */
    function removeWheelListener(
        element: GlobalEventHandlers,
        callback: (event: WheelEvent) => void,
        useCapture?: boolean,
    ): void;
}

export = wheel;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Bradley Odell.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/wheel

Weekly Downloads

324

Version

0.0.3

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types