Implements
  • Events

Constructors

Methods

  • Dispatch an event with data

    Type Parameters

    • T

    Parameters

    • event: string

      Event name

    • data: T

      Event data

    Returns void

  • Alias for dispatch

    Type Parameters

    • T

    Parameters

    • event: string

      Event name

    • data: T

      Event data

    Returns void

  • Alias for on

    Type Parameters

    • T

    Parameters

    • event: string

      Event name

    • callback: EventCallback<T>

      Event handler

    Returns void

  • Remove an event listener

    Type Parameters

    • T

    Parameters

    • event: string

      Event name

    • callback: EventCallback<T>

      Event handler

    Returns void

  • Add an event listener

    Type Parameters

    • T

    Parameters

    • event: string

      Event name

    • callback: EventCallback<T>

      Event handler

    Returns void

  • Alias for off

    Type Parameters

    • T

    Parameters

    • event: string

      Event name

    • callback: EventCallback<T>

      Event handler

    Returns void