Event emitter is a handy implementation of OnEvent sender.

Extends EventNotifier by making its on method implement an OnEvent interface.

Type Parameters

  • TEvent extends any[]

    An event type. This is a list of event receiver parameter types.

Hierarchy

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

on: OnEvent<TEvent> = ...

OnEvent sender of emitted events.

The [OnEvent__symbol] method is an alias of this one.

send: ((this, ...event) => void)

Type declaration

    • (this, ...event): void
    • Sends the given event to all registered receivers.

      Parameters

      • this: EventEmitter<TEvent>
      • Rest ...event: TEvent

        An event to send represented by function call arguments.

      Returns void

supply: Supply

Accessors

Methods

Generated using TypeDoc