Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Event<T>

Type Parameters

  • T

Hierarchy

  • Event

Callable

  • Represents a typed event.

    Parameters

    • listener: ((e: T) => any)

      The listener function will be call when the event happens.

        • (e: T): any
        • Parameters

          • e: T

          Returns any

    • Optional thisArgs: any

      The 'this' which will be used when calling the event listener.

    • Optional disposables: DisposableGroup

      An array to which a {{IDisposable}} will be added.

    Returns Disposable

    a disposable to remove the listener again.