Type Alias _BuiltInEvents<T>Internal

_BuiltInEvents: {
    newListener: <E extends keyof T>(
        eventName: E,
        listener: T[E],
    ) => ReturnType<Parameters<EventEmitter["on"]>[1]>;
    removeListener: <E extends keyof T>(
        eventName: E,
        listener: T[E],
    ) => ReturnType<Parameters<EventEmitter["on"]>[1]>;
}

Built-in events on all EventEmitters.

Typed EventEmitter

Type Parameters

Type declaration

  • newListener: <E extends keyof T>(
        eventName: E,
        listener: T[E],
    ) => ReturnType<Parameters<EventEmitter["on"]>[1]>
  • removeListener: <E extends keyof T>(
        eventName: E,
        listener: T[E],
    ) => ReturnType<Parameters<EventEmitter["on"]>[1]>