Skip to main content

Interface: UpdateDefinition<Ret, Args, Name>

Defined in: node_modules/@temporalio/common/lib/interfaces.d.ts:52

An interface representing a Workflow update definition, as returned from defineUpdate

Remarks​

Args can be used for parameter type inference in handler functions and WorkflowHandle methods. Name can optionally be specified with a string literal type to preserve type-level knowledge of the update name.

Type Parameters​

Ret​

Ret

Args​

Args extends any[] = []

Name​

Name extends string = string

Properties​

[argsBrand]​

[argsBrand]: Args

Defined in: node_modules/@temporalio/common/lib/interfaces.d.ts:61

Virtual type brand to maintain a distinction between UpdateDefinition types with different args. This field is not present at run-time.


[retBrand]​

[retBrand]: Ret

Defined in: node_modules/@temporalio/common/lib/interfaces.d.ts:66

Virtual type brand to maintain a distinction between UpdateDefinition types with different return types. This field is not present at run-time.


name​

name: Name

Defined in: node_modules/@temporalio/common/lib/interfaces.d.ts:54


type​

type: "update"

Defined in: node_modules/@temporalio/common/lib/interfaces.d.ts:53


typeInfo?​

optional typeInfo?: PayloadTypeInfo

Defined in: node_modules/@temporalio/common/lib/interfaces.d.ts:56

Type information used to convert Update arguments and results.