type Update<T = any> =
| T
| { $set: T }
| { $merge: Merge<T> }
| { $apply: (t: T) => T }
| { $patch: (t: T) => Update<T> }
| { $nop: any }
| { $delete: any }
| DeepUpdate<T>
| undefined
Mutation-as-value
DeepPartial<T>
, i.e. recursive Partial<T>
Update<T>
$ops
$apply
or $patch
packages / state / src / types.ts