Options
All
  • Public
  • Public/Protected
  • All
Menu

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

层级

  • 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.

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹