Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/workflow / / WorkflowNodeRun
Type Alias: WorkflowNodeRun<TState>
ts
type WorkflowNodeRun<TState> = (state, ctx) =>
| Promise<NodeRunResult<TState>>
| NodeRunResult<TState>;Defined in: packages/workflow/src/types.ts:159
Per-node run callback.
Type Parameters
| Type Parameter | Default type |
|---|---|
TState extends object | Record<string, unknown> |
Parameters
| Parameter | Type |
|---|---|
state | Readonly<TState> |
ctx | WorkflowContext<TState> |
Returns
| Promise<NodeRunResult<TState>> | NodeRunResult<TState>