• Parameters

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

      The listener function will be called when the event happens.

        • (e): any
        • Parameters

          • e: any

          Returns any

    • OptionalthisArgs: any

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

    • Optionaldisposables: Disposable[]

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

    Returns Disposable