Type alias Updater<T, U>

Updater<T, U>: ((value) => U)

A function that can be used to update store's value. This function is called with the current value and should return new store value.

Type Parameters

  • T

  • U = T

Type declaration

    • (value): U
    • Parameters

      • value: T

      Returns U

Generated using TypeDoc