openmixer — generated API reference
    Preparing search index...

    Type Alias PatchOutcome<S>

    PatchOutcome:
        | { accepted: true; settled?: Settlement; state: S }
        | { accepted: false; refusal: Refusal }

    The outcome of applying a patch to the one state: it either happened, with the state after, or it was refused, with the code. There is no third shape — a refusal never invents a state.

    state is the store's reading at the instant the write returned; settled says whether that instant was the whole story. The registry re-reads after the settlement and that later read is what a client is told — see Settlement.

    Type Parameters

    • S extends object