CommandValue type alias

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

type CommandValue<A> = A extends BridgeOutcome<unknown, unknown> ? A extends {
    readonly ok: true;
    readonly value: infer V;
} ? V : never : A;

The success value of a command: for one that declares a failure, the value of its BridgeOutcome, otherwise what the client method resolves to.