Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/workflow / / WorkflowEdge

Interface: WorkflowEdge<TState>

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

Stable

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.

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