- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
StepResponse
This class is used to create the response returned by a step. A step return its data by returning an instance of StepResponse
.
Type parameters#
TOutput
objectOptionalThe type of the output of the step.
TCompensateInput
objectOptionalThe type of the compensation input. If the step doesn't specify any compensation input, then the type of
TCompensateInput
is the same
as that of TOutput
.Constructors#
Methods#
constructor#
The constructor of the StepResponse
Type Parameters#
TOutput
objectOptionalThe type of the output of the step.
TCompensateInput
objectOptionalThe type of the compensation input. If the step doesn't specify any compensation input, then the type of
TCompensateInput
is the same
as that of TOutput
.Parameters#
output
TOutputOptionalThe output of the step.
compensateInput
TCompensateInputOptionalThe input to be passed as a parameter to the step's compensation function. If not provided, the
output
will be provided instead.Was this page helpful?