Skip to main content

Interface: NexusTypedActivityClient<T>

Experimental

Sub-interface of TemporalNexusClient that provides a strongly-typed interface for executing Activities. Argument types in the provided options must match the argument types of the specified Activity as defined in provided interface

Type Parameters​

T​

T

Activity interface

Nexus support in Temporal SDK is experimental.

Methods​

startActivity()​

startActivity<N>(activity, options): Promise<TemporalOperationResult<ActivityResult<T, N>>>

Experimental

Type Parameters​

N​

N extends string

Parameters​

activity​

N

options​

ActivityOptionsFor<T, N>

Returns​

Promise<TemporalOperationResult<ActivityResult<T, N>>>