Class TypedEventEmitter<T>

Type Parameters

  • T

Constructors

Properties

Methods

Constructors

Properties

emitter: EventEmitter<string | symbol, any> = ...

Methods

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • payload: T[K]

    Returns boolean

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • listener: ((payload) => void)
        • (payload): void
        • Parameters

          • payload: T[K]

          Returns void

    Returns this

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • listener: ((payload) => void)
        • (payload): void
        • Parameters

          • payload: T[K]

          Returns void

    Returns this

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • listener: ((payload) => void)
        • (payload): void
        • Parameters

          • payload: T[K]

          Returns void

    Returns this

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • listener: ((payload) => void)
        • (payload): void
        • Parameters

          • payload: T[K]

          Returns void

    Returns {
        remove: (() => void);
    }

    • remove: (() => void)
        • (): void
        • Returns void

Generated using TypeDoc