Dex TypeScript SDK 1.44.0
    Preparing search index...

    Variable joinRoundCodecConst

    joinRoundCodec: Codec<JoinRound> = ...

    Encodes a JoinRound as the JSON object {"roundKey": string, "branchCount": integer}.

    Use it as the inputCodec of a branch Step whose input is exactly a JoinRound. Encoding writes only the two fields. Decoding ignores unknown fields, because later releases may add fields.

    class QuoteFromSupplierA implements Step<JoinRound> {
    public readonly inputCodec = joinRoundCodec;

    public getStepType(): string {
    return "QuoteFromSupplierA";
    }

    public execute(context: Context, round: JoinRound): StepDecision {
    return quoteReceived.endBranch(context, round, "A");
    }
    }

    Decoding throws a TypeError when roundKey is not a non-empty string without /, or when branchCount is not a non-negative safe integer.

    1.44.0