Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEventEmitterExtendedMutable<Record>

A mutable event emitter can create new events

Type parameters

  • Record

Hierarchy

Implemented by

Index

Properties

catcher

catcher: ICatcher | undefined

emit

emit: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, ...args: EventEmitterArgumentTypes<Record[E]>) => boolean : (event: EventEmitterEvent, ...args: unknown[]) => boolean

invoke

invoke: Record extends object ? <E extends Exclude<keyof Record, number>>(event: E, ...args: EventEmitterArgumentTypes<Record[E]>) => IterableIterator<EventEmitterReturnType<Record[E]>> : (event: EventEmitterEvent, ...args: unknown[]) => IterableIterator<...>

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

Methods

__@iterator

  • __@iterator(): Iterator<[Event, IterableIterator<IListener>]>
  • Returns Iterator<[Event, IterableIterator<IListener>]>

callbacks

  • callbacks(event: Event): IterableIterator<ICallback>

dispose

  • dispose(): this

entries

  • entries(): IterableIterator<[Event, IterableIterator<IListener>]>

eventNames

  • eventNames(): Array<Event>

getMaxListeners

  • getMaxListeners(): number

keys

  • keys(): IterableIterator<Event>

names

  • names(): IterableIterator<Event>

setMaxListeners

  • setMaxListeners(value: number): this

values

  • values(): IterableIterator<IterableIterator<IListener>>