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.