Interface Event<T>

Represents a typed event.

interface Event<T> ((listener, thisArgs?, disposables?) => Disposable)

Type Parameters

  • T
  • Parameters

    • listener: ((e) => any)

      The listener function will be call when the event happens.

        • (e): any
        • Parameters

          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.