Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TypedEvent<TEvent>

Represents a typed event.

Type Parameters

  • TEvent

    The type of event data that will be emitted.

Hierarchy

  • TypedEvent

Implements

Index

Constructors

Properties

Methods

Constructors

Properties

#private: any

Methods

  • emit(event: TEvent): void
  • Emits an instance of the event, ensuring that all subscribed listeners are invoked.

    Parameters

    • event: TEvent

      The event data.

    Returns void

  • Unsubscribes a listener from the event.

    Parameters

    Returns void

  • Subscribes a listener to receive a single instance of the event.

    Parameters

    Returns void

Generated using TypeDoc