MockSetterHandler type alias

Module @runic-artifex/views/mock in @runic-artifex/views 0.23.0

type MockSetterHandler<TState, TValue> = (state: TState, value: TValue) => Awaitable<Patch<TState> | void>;

Runs before a setter or checked write applies value. Return more state changes, such as a dirty flag; throw to reject the value.