Skip to content

js-bao-wss-client


js-bao-wss-client / WorkflowApplyHandler

Type Alias: WorkflowApplyHandler<O> ​

WorkflowApplyHandler<O> = (result) => void | Promise<void>

Callback for applying a workflow result to a document. O types the workflow's output; it is additive and defaults to today's untyped any.

Type Parameters ​

O ​

O = unknown

Parameters ​

result ​

contextDocId? ​

string

meta? ​

Record<string, any>

output ​

O

runId ​

string

runKey ​

string

startedByUserId? ​

string

workflowKey ​

string

Returns ​

void | Promise<void>

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30