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.
MockSetterHandler type aliastype 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.