Constructors

Methods

Constructors

Methods

  • Emit an event

    Parameters

    • event: string
    • parameters: {
          [key: string]: unknown;
      }
      • [key: string]: unknown

    Returns void

  • Unregisters all listeners for a given event.

    Parameters

    • Optionalevent: string

      The event name you wish to remove the listener for. If nothing is provided, all events are removed.

    Returns this

  • Registers a listener for a given event. Multiple listeners can be set on an event.

    Parameters

    • event: string

      The event name to listen to.

    • listener: BatchEventCallback

      Function with two arguments : event name and parameters.

    Returns this