Properties
catcher
catcher: ICatcher | undefined
listenerCount
listenerCount: Record extends object ? (event: Exclude<keyof Record, number>) => number : (event: EventEmitterEvent) => number
listeners
listeners: Record extends object ? (event: Exclude<keyof Record, number>) => IEventEmitterListener<unknown[], unknown, never>[] : (event: EventEmitterEvent) => IEventEmitterListener<unknown[], unknown, never>[]
maxListeners
maxListeners: number | undefined
off
off: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => this : (event: EventEmitterEvent, listener: IEventEmitterListener<unknown[], unknown, never>) => this
on
on: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => this : (event: EventEmitterEvent, listener: IEventEmitterListener<unknown[], unknown, never>) => this
once
once: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => this : (event: EventEmitterEvent, listener: IEventEmitterListener<unknown[], unknown, never>) => this
removeAllListeners
removeAllListeners: Record extends object ? (event?: Exclude<keyof Record, number> | undefined) => this : (event?: string | symbol | undefined) => this
subscribe
subscribe: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, listener: IEventEmitterFunction<Record, E>) => IEventEmitterSubscriptionMutable : (event: EventEmitterEvent, listener: IEventEmitterListener<...>) => IEventEmitterSubscriptionMutable
An interface to a non-modifiable emitter. Listeners can be added/removed but no events can be created.