Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/workflow / / WorkflowEdge

Interface: WorkflowEdge<TState>

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

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:206
toreadonlystringpackages/workflow/src/types.ts:207
when?readonlyEdgePredicate<TState>packages/workflow/src/types.ts:208