Skip to main content

Interface: WorkflowHandle<T>

nexus.WorkflowHandle

A handle to a running workflow that is returned by the startWorkflow helper. This handle should be returned by WorkflowRunOperationStartHandler implementations.

The type parameter T carries the workflow's result type for downstream type inference in WorkflowRunOperationHandler. It is encoded in the workflowResultType brand so that WorkflowHandle<string> and WorkflowHandle<number> are structurally distinct.

Nexus support in Temporal SDK is experimental.

Type parameters

Name
T

Properties

runId

Optional Readonly runId: string


workflowId

Readonly workflowId: string

Methods

signal

signal<Args, Name>(def, ...args): Promise<void>

Type parameters

NameType
Argsextends any[] = []
Nameextends string = string

Parameters

NameType
defstring | SignalDefinition<Args, Name>
...argsArgs

Returns

Promise<void>