Interface EventHandler<EventMap>

Type Parameters

  • EventMap extends Record<string, ((...args) => any)>

Hierarchy

Methods

  • Adds a listener for events with the specified name.

    Type Parameters

    • T extends string | number | symbol

    Parameters

    • this: void
    • name: T
    • listener: EventMap[T]

    Returns void

  • Removes a listener for events with the specified name.

    Type Parameters

    • T extends string | number | symbol

    Parameters

    • this: void
    • name: T
    • listener: EventMap[T]

    Returns void

Generated using TypeDoc