A concrete implementation of IObservableMap.

Type Parameters

  • T

Hierarchy (view full)

Implements

Constructors

Properties

_isDisposed: boolean = false
_itemCmp: ((first, second) => boolean)

Type declaration

    • (first, second): boolean
    • Parameters

      • first: T
      • second: T

      Returns boolean

_map: Map<string, T> = ...

Accessors

Methods

  • Set a key-value pair in the map

    Parameters

    • key: string

      The key to set.

    • value: T

      The value for the key.

    Returns undefined | T

    the old value for the key, or undefined if that did not exist.

    Throws

    if the new value is undefined.

    Notes

    This is a no-op if the value does not change.