Function: createFlowBranchBuilder()
ts
function createFlowBranchBuilder<TFlowIn, TBranchOut, THandle, TBranchId, TReceipt, TCustomMetrics, TStepOutputs>(id): FlowBranchBuilder<TFlowIn, TBranchOut, THandle, TBranchId, TReceipt, TCustomMetrics, TStepOutputs>;Defined in: builders/create-flow-branch-builder.ts:23
Creates a fluent FlowBranchBuilder for flow.branch(id, $b => ...).
Validates that id is a non-empty branch identifier and initializes an immutable FlowBranchBuilder with empty .when() cases and .otherwise() fallback steps.
Type Parameters
Parameters
| Parameter | Type | Description |
|---|---|---|
id | TBranchId | Unique identifier of the branch node. |
Returns
FlowBranchBuilder<TFlowIn, TBranchOut, THandle, TBranchId, TReceipt, TCustomMetrics, TStepOutputs>
Frozen branch builder.