Type Alias Updater<T, U>

Updater<T, U>: ((value: T) => 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