Skip to content

IObservableMap

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

Represents an observable map based on the Map interface.

Extends IReadOnlyObservableMap<TKey, TItem>.

interface IObservableMap<TKey, TItem>
    extends IReadOnlyObservableMap<TKey, TItem>

Source reference: src/collections/observableMap/IObservableMap.ts:8.

Generic Parameters

  • TKey - The type of keys the map contains.

  • TItem - The type of items the map contains.

Properties

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

Methods

  • clear - Empties the map of all entries.
  • delete - Removes the entry having the given given key from the map.
  • set - Sets the provided item at the given key. If there is an entry already exists with the given key, then it is replaced.

Implementations

Clone this wiki locally