Skip to content

Interface: FlowBranchCase<TFlowIn, THandle> ​

Defined in: ast/flow-branch-node.ts:14

Conditional branch case entry (when(predicate, $sub => ...)) inside a FlowBranchNode.

Pairs a synchronous predicate over flowInput with the ordered sequence of steps or nested branches executed when predicate evaluates to true.

Type Parameters ​

Type ParameterDefault typeDescription
TFlowInunknownEnclosing flow input payload type.
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
predicatereadonlyBivariantCallback<[input: TFlowIn], boolean>Synchronous predicate evaluated against flowInput to select this branch case.ast/flow-branch-node.ts:16
stepsreadonlyreadonly ( | FlowStepNode<unknown, unknown, THandle, string> | FlowBranchNode<unknown, unknown, THandle, string>)[]Ordered sequence of steps or nested branches executed when predicate(flowInput) returns true.ast/flow-branch-node.ts:18

Released under the MIT License.