Skip to content

IObservableSet

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / IObservableSet<TItem> interface

Represents an observable set based on the Set interface.

Extends IReadOnlyObservableSet<TItem>.

interface IObservableSet<TItem>
    extends IReadOnlyObservableSet<TItem>

Source reference: src/collections/observableSet/IObservableSet.ts:7.

Generic Parameters

  • TItem - The type of items the set contains.

Properties

  • inherited readonly propertiesChanged - An event that is raised when one or more properties may have changed.
  • inherited readonly setChanged - An event that is raised when the set changed by adding or removing items.
  • inherited readonly size - Gets the number of items in the set.

Methods

  • add - Ensures the provided item is in the set. There can be at most only one instance of an item in a set at any given time.
  • clear - Empties the set of all items.
  • delete - Ensures the provided item is not in the set.

Implementations

Clone this wiki locally