Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • Event

Callable

  • A function that represents an event to which you subscribe by calling it with a listener function as argument.

    Parameters

    • listener: (e: T) => any

      The listener function will be called when the event happens.

        • (e: T): any
        • Parameters

          • e: T

          Returns any

    • Optional thisArgs: any

      The this argument which will be used when calling the event listener. (rarely used)

    • Optional disposables: Disposable

      An array to which a disposable will be added.

    Returns Disposable

    A disposable which unsubscribes the event listener.

Generated using TypeDoc