Interface: NexusTypedActivityClient<T>
nexus.NexusTypedActivityClient
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
| Name | Description |
|---|---|
T | Activity interface Nexus support in Temporal SDK is experimental. |
Methods
startActivity
▸ startActivity<N>(activity, options): Promise<TemporalOperationResult<ActivityResult<T, N>>>
Type parameters
| Name | Type |
|---|---|
N | extends string |
Parameters
| Name | Type |
|---|---|
activity | N |
options | ActivityOptionsFor<T, N> |
Returns
Promise<TemporalOperationResult<ActivityResult<T, N>>>