MockSetter type alias

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

type MockSetter = (state: MockState, value: unknown) => MockState | void | Promise<MockState | void>;

Runs before a set applies value (a wire value) to its member. Return more state changes, which are merged after the value, so returning the member itself normalizes it; throw to reject the value. A thrown error becomes a failed reply with its type, message and stack as detail; an error with a kind (and reason) keeps them.