Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Methods

  • emit(eventName: string, ...args: any[]): void
  • Fires all listeners attached to the specified event

    Parameters

    • eventName: string

      The event to fire on

    • Rest ...args: any[]

      Arguments passed to the listener callbacks

    Returns void

  • on(eventName: string, eventCallback: ((...args: any[]) => any)): EventListener
  • Listens for the specified event

    Parameters

    • eventName: string

      The event to listen for

    • eventCallback: ((...args: any[]) => any)

      The function to call when the specified event is fired

        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns EventListener

  • once(eventName: string, eventCallback: ((...args: any[]) => any)): EventListener
  • Listens for the specified event once, then stops listening

    Parameters

    • eventName: string

      The event to listen for

    • eventCallback: ((...args: any[]) => any)

      The function to call when the specified event is fired

        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns EventListener

Generated using TypeDoc version 0.22.18, the 7/5/2022