@bodil/signal
    Preparing search index...

    Class ReadonlyMap<K, V>

    A read-only view of a Signal.Map.

    This acts just like the Signal.Map it was created from, mirroring the current contents of the source map, but without the ability to modify it.

    Type Parameters

    • K
    • V

    Hierarchy (View Summary)

    Implements

    Methods

    • Test whether a given value is a Signal.Map with identical contents to this map.

      Parameters

      • other: unknown

      Returns other is ReadonlyMap<K, V>

    • Test whether the given key is defined in the map.

      Parameters

      • key: K

      Returns boolean

    • Test whether the map is empty.

      Returns boolean

    • Obtain a Signal.Computed representing the current value of the given key in the map. The signal will update when the value changes, and will not respond to changes to any other elements of the map.

      Parameters

      • key: K

      Returns Computed<Option<V>>

    • Get the size of the map.

      Returns number

    • Test whether a value is a Signal.ReadonlyMap.

      Parameters

      • value: unknown

      Returns value is ReadonlyMap<unknown, unknown>