Skip to content

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 ParameterDefault type
TState extends objectRecord&lt;string, unknown&gt;

Parameters

ParameterType
stateReadonly&lt;TState&gt;
ctxWorkflowContext&lt;TState&gt;

Returns

| Promise<NodeRunResult&lt;TState&gt;> | NodeRunResult&lt;TState&gt;

Stable