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 Parameter | Default type |
|---|---|
TState extends object | Record<string, unknown> |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
from | readonly | string | packages/workflow/src/types.ts:206 |
to | readonly | string | packages/workflow/src/types.ts:207 |
when? | readonly | EdgePredicate<TState> | packages/workflow/src/types.ts:208 |