type Update<V>
A utility type describing an update operation for a value of type V.
It can be either a new value, or a function that receives the previous value and returns the new one.
Definition
type Update<V> = V | (<V2 extends V>(value: V & V2) => V);