Skip to main content

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

NameDescription
TActivity 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

NameType
Nextends string

Parameters

NameType
activityN
optionsActivityOptionsWithArgs<ActivityArgs<T, N>>

Returns

Promise<ActivityResult<T, N>>


start

start<N>(activity, options): Promise<ActivityHandle<ActivityResult<T, N>>>

Type parameters

NameType
Nextends string

Parameters

NameType
activityN
optionsActivityOptionsWithArgs<ActivityArgs<T, N>>

Returns

Promise<ActivityHandle<ActivityResult<T, N>>>