Skip to main content

Interface: UpdateDefinition<Ret, Args, Name>

common.UpdateDefinition

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

NameType
RetRet
Argsextends any[] = []
Nameextends 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"