.guard() predicate: a falsy result stops the flow.
Type Parameters
Parameters
Returns
unknown | Promise<unknown>Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Type alias exported by @botmesh/core.
type FlowGuard<S> = (ctx, c) => unknown | Promise<unknown>;
.guard() predicate: a falsy result stops the flow.
| Type Parameter | Default type |
|---|---|
S extends object | EmptyFlowState |
| Parameter | Type |
|---|---|
ctx | RuntimeMessage |
c | FlowControls<S> |
unknown | Promise<unknown>