Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/workflow / / EdgePredicate
Type Alias: EdgePredicate<TState>
ts
type EdgePredicate<TState> = (state) => boolean;Defined in: packages/workflow/src/types.ts:194
Predicate evaluated by the engine when deciding which edges to fire.
Type Parameters
| Type Parameter | Default type |
|---|---|
TState extends object | Record<string, unknown> |
Parameters
| Parameter | Type |
|---|---|
state | Readonly<TState> |
Returns
boolean