Interface: TypedActivityClient<T>
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
T
T
Activity interface
Methods
execute()
execute<
N>(activity,options):Promise<ActivityResult<T,N>>
Type Parameters
N
N extends string
Parameters
activity
N
options
ActivityOptionsWithArgs<ActivityArgs<T, N>>
Returns
Promise<ActivityResult<T, N>>
start()
start<
N>(activity,options):Promise<ActivityHandle<ActivityResult<T,N>>>
Type Parameters
N
N extends string
Parameters
activity
N
options
ActivityOptionsWithArgs<ActivityArgs<T, N>>
Returns
Promise<ActivityHandle<ActivityResult<T, N>>>