Interface: TypedActivityClient<T>
client.TypedActivityClient
Sub-interface of ActivityClient 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 Standalone Activities are experimental. APIs may be subject to change. |
Implemented by
Methods
execute
▸ execute<N>(activity, options): Promise<ActivityResult<T, N>>
Type parameters
| Name | Type |
|---|---|
N | extends string |
Parameters
| Name | Type |
|---|---|
activity | N |
options | ActivityOptionsWithArgs<ActivityArgs<T, N>> |
Returns
Promise<ActivityResult<T, N>>
start
▸ start<N>(activity, options): Promise<ActivityHandle<ActivityResult<T, N>>>
Type parameters
| Name | Type |
|---|---|
N | extends string |
Parameters
| Name | Type |
|---|---|
activity | N |
options | ActivityOptionsWithArgs<ActivityArgs<T, N>> |
Returns
Promise<ActivityHandle<ActivityResult<T, N>>>