Class SimpleEventDispatcher<T>

A simple event dispatcher with typed event types, see IEventDispatcher.

Type Parameters

  • T extends string

Hierarchy (View Summary)

Implements

Constructors

Methods

  • Checks if listener is added to an event type.

    Parameters

    • type: T

      The type of event to listen to.

    • listener: (event: IEvent<T>) => void

      The function that gets called when the event is fired.

    Returns boolean