Class EventEmitter<EventTypes, Context>

Minimal EventEmitter interface that is molded against the Node.js EventEmitter interface.

Type Parameters

  • EventTypes extends ValidEventTypes = string | symbol
  • Context extends any = any

Hierarchy (View Summary)

Constructors

Properties

prefixed: string | boolean

Methods

  • Calls each of the listeners registered for a given event.

    Type Parameters

    • T extends string | symbol

    Parameters

    Returns boolean

  • Remove the listeners of a given event.

    Type Parameters

    • T extends string | symbol

    Parameters

    Returns this