MapStateAtom<K, V>: StateAtom<ReadonlyMap<K, V>, {
    add: ((map, key, value) => boolean);
    remove: ((map, key) => boolean);
    reset: ((map) => boolean);
    setAll: ((map, value) => boolean);
}>

Type Parameters

  • K

  • V

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
      • Parameters

        • map: ReadonlyMap<K, V>

        Returns boolean

  • setAll: ((map, value) => boolean)
      • (map, value): boolean
      • Parameters

        • map: ReadonlyMap<K, V>
        • value: [K, V][]

        Returns boolean

Generated using TypeDoc