Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Event<T>

Represents a typed event.

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

example

item.onDidChange(function(event) { console.log("Event happened: " + event); });

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.

    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.

    • Optional disposables: Disposable[]

      An array to which a Disposable will be added.

    Returns Disposable

    A disposable which unsubscribes the event listener.

Generated by TypeDoc