Type Parameters
-
O extends Record<string, unknown>
Constructors
constructor
- new ValueMap<O>(valueMap: ValueMapCore<O>): ValueMap<O>
-
Type Parameters
-
O extends Record<string, unknown>
Methods
get
- get<Key>(key: Key): O[Key]
-
Type Parameters
-
Key extends string | number | symbol
Returns O[Key]
set
- set<Key>(key: Key, value: O[Key]): void
-
Type Parameters
-
Key extends string | number | symbol
Returns void
value
- value<Key>(key: Key): Value<O[Key]>
-
Type Parameters
-
Key extends string | number | symbol
Returns Value<O[Key]>
Static
createCore
- createCore<O>(initialValue: O): ValueMapCore<O>
-
Type Parameters
-
O extends Record<string, unknown>
Static
fromObject
- fromObject<O>(initialValue: O): ValueMap<O>
-
Type Parameters
-
O extends Record<string, unknown>