Type alias MapStateAtom<K, V>
MapStateAtom<K, V>: StateAtom<ReadonlyMap<K, V>, { add: ((map,
key,
value) => boolean); remove: ((map,
key) => boolean); reset: ((map) => boolean); setAll: ((map,
value) => boolean); }>
Type declaration
-
add: ((map, key, value) => boolean)
-
- (map, key, value): boolean
-
Parameters
-
map: ReadonlyMap<K, V>
-
key: K
-
value: V
Returns boolean
-
remove: ((map, key) => boolean)
-
- (map, key): boolean
-
Parameters
-
map: ReadonlyMap<K, V>
-
key: K
Returns boolean
-
reset: ((map) => boolean)
-
- (map): boolean
-
Returns boolean
-
setAll: ((map, value) => boolean)
-
- (map, value): boolean
-
Parameters
-
map: ReadonlyMap<K, V>
-
value: [K, V][]
Returns boolean