Extended EventEmitter that also emits all events to '*' listeners

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

repository: Repository<E>
subs: Map<string, Filter[]> = ...
defaultMaxListeners: number

Methods

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Emits an event to listeners and to '*' listeners

    Parameters

    • type: string

      Event type/name

    • ...args: any[]

      Arguments to pass to listeners

    Returns boolean

    True if event had listeners

  • Returns (string | number)[]

  • Returns number

  • Parameters

    • __namedParameters: [string]

    Returns void

  • Parameters

    • __namedParameters: [E]

    Returns void

  • Parameters

    • __namedParameters: [string, ...Filter[]]

    Returns void

  • Parameters

    • type: string | number

    Returns number

  • Parameters

    • type: string | number

    Returns Listener[]

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string | number

    Returns Listener[]

  • Parameters

    • Optionaltype: string | number

    Returns this

  • Parameters

    • type: string | number
    • listener: Listener

    Returns this

  • Parameters

    • type: string
    • ...message: any[]

    Returns void

  • Parameters

    • n: number

    Returns this

  • Parameters

    • emitter: EventEmitter
    • type: string | number

    Returns number