Class TypedEventEmitter<TEvents>

Type Parameters

  • TEvents extends Record<string, any>

Hierarchy

  • TypedEventEmitter

Constructors

Methods

Constructors

Methods

  • Type Parameters

    • TEventName extends string

    Parameters

    • eventName: TEventName
    • Rest ...eventArg: TEvents[TEventName]

    Returns void

  • Type Parameters

    • TEventName extends string

    Parameters

    • eventName: TEventName
    • handler: ((...eventArg) => void)
        • (...eventArg): void
        • Parameters

          • Rest ...eventArg: TEvents[TEventName]

          Returns void

    Returns void

  • Type Parameters

    • TEventName extends string

    Parameters

    • eventName: TEventName
    • handler: ((...eventArg) => void)
        • (...eventArg): void
        • Parameters

          • Rest ...eventArg: TEvents[TEventName]

          Returns void

    Returns void