|
1
|
{"slug":"/references/workflows/classes/workflows.StepResponse","title":"StepResponse","frontmatter":{},"toc":[{"title":"Type parameters","id":"type-parameters","level":2},{"title":"Constructors","id":"constructors","level":2},{"title":"Methods","id":"methods","level":2},{"title":"constructor","id":"constructor","level":2},{"title":"Type Parameters","id":"constructor-type-parameters","level":3},{"title":"Parameters","id":"constructor-parameters","level":3}],"blocks":[{"kind":"markdown","html":"This class is used to create the response returned by a step. A step return its data by returning an instance of `StepResponse`."},{"kind":"heading","level":2,"text":"Type parameters","id":"type-parameters"},{"kind":"typeList","sectionTitle":"StepResponse","types":[{"name":"TOutput","type":"`object`","description":"The type of the output of the step.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"TCompensateInput","type":"`object`","description":"The type of the compensation input. If the step doesn't specify any compensation input, then the type of `TCompensateInput` is the same\nas that of `TOutput`.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":2,"text":"Constructors","id":"constructors"},{"kind":"linkList","items":[{"title":"constructor","href":"/references/workflows/classes/workflows.StepResponse#constructor"}]},{"kind":"heading","level":2,"text":"Methods","id":"methods"},{"kind":"linkList","items":[{"title":"permanentFailure","href":"/references/workflows/StepResponse/methods/workflows.StepResponse.permanentFailure"},{"title":"skip","href":"/references/workflows/StepResponse/methods/workflows.StepResponse.skip"}]},{"kind":"heading","level":2,"text":"constructor","id":"constructor"},{"kind":"markdown","html":"The constructor of the StepResponse"},{"kind":"heading","level":3,"text":"Type Parameters","id":"constructor-type-parameters"},{"kind":"typeList","sectionTitle":"constructor","types":[{"name":"TOutput","type":"`object`","description":"The type of the output of the step.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"TCompensateInput","type":"`object`","description":"The type of the compensation input. If the step doesn't specify any compensation input, then the type of `TCompensateInput` is the same\nas that of `TOutput`.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":3,"text":"Parameters","id":"constructor-parameters"},{"kind":"typeList","sectionTitle":"constructor","types":[{"name":"output","type":"TOutput","description":"The output of the step.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"compensateInput","type":"TCompensateInput","description":"The input to be passed as a parameter to the step's compensation function. If not provided, the `output` will be provided instead.","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]} |