Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/workflow / / WorkflowEdge

Interface: WorkflowEdge<TState>

Defined in: packages/workflow/src/types.ts:254

Edge between two nodes. Edges with a when predicate fire only when the predicate evaluates to truthy; unconditional edges always fire when the source node completes.

Stable

Type Parameters

Type ParameterDefault type
TState extends objectRecord<string, unknown>

Properties

PropertyModifierTypeDefined in
fromreadonlystringpackages/workflow/src/types.ts:255
toreadonlystringpackages/workflow/src/types.ts:256
when?readonlyEdgePredicate<TState>packages/workflow/src/types.ts:257