@types/add-dom-event-listener
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    Installation

    npm install --save @types/add-dom-event-listener

    Summary

    This package contains type definitions for add-dom-event-listener (https://github.com/yiminghe/add-dom-event-listener).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/add-dom-event-listener.

    index.d.ts

    // Type definitions for add-dom-event-listener 1.1
    // Project: https://github.com/yiminghe/add-dom-event-listener
    // Definitions by: janeluck <https://github.com/janeluck>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    declare function addDomEventListener(target: HTMLElement | Document | Window, eventType: string, callback: (event: any) => any): addDomEventListener.Listener;
    
    declare namespace addDomEventListener {
        interface Listener {
            remove(): void;
        }
    }
    export = addDomEventListener;

    Additional Details

    • Last updated: Sat, 13 Nov 2021 00:01:24 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by janeluck.

    Keywords

    none

    Install

    npm i @types/add-dom-event-listener

    DownloadsWeekly Downloads

    11,006

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.72 kB

    Total Files

    4

    Last publish

    Collaborators

    • types