Function: wrapActivities()
wrapActivities<
T>(activities,errorMapping):T
Defined in: src/error-mapping/wrap-activities.ts:64
Wrap activity handlers so thrown errors are mapped to retryable or non-retryable failures.
With mapping off (undefined / false) the SAME object is returned and no handler is
touched. Handlers are already bound to their instances, so this is unaffected.
Type Parameters
T
T extends Record<string, Function>
Parameters
activities
T
errorMapping
boolean | ErrorMappingOptions | undefined
Returns
T