Special case of the EventEmitter which is configured to emit events defined in events.FTEvents

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Fires the event, calling all registered listeners with the provided arguments.

    Type Parameters

    Parameters

    • event: K

      The event name.

    • Rest ...args: FTEvents[K]

      The arguments for the listeners.

    Returns void

  • Removes a listener for the event.

    Type Parameters

    Parameters

    Returns void

  • Registers a new listener for the event.

    Type Parameters

    Parameters

    Returns (() => void)

    A function that removes the listener when called.

      • (): void
      • Returns void