Skip to main content

Interface: UpdateDefinition<Ret, Args, Name>

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

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


[retBrand]​

[retBrand]: Ret

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


type​

type: "update"


typeInfo?​

optional typeInfo?: PayloadTypeInfo

Type information used to convert Update arguments and results.