interface BridgeOperationCodec<TResult, TFailure = never> How generated code decodes the values of one operation. Generated code is its only intended caller.
Properties
decode
readonly decode: (value: unknown) => TResult; Decodes the command's result, or a stream item for a stream operation.
decodeFailure
readonly decodeFailure?: ((value: unknown) => TFailure) | undefined; Decodes the declared failure; given exactly when the command declares a failure type.
stream
readonly stream?: boolean | undefined; The command yields a stream, read with stream().