Function fromRescuedStep
-
fromRescuedStep<T extends RequestType | undefined = undefined>(
key: string,
type?: T,
): ValueRequestDecorator<T, Place<RescueStepClass, undefined>>Type Parameters
- T extends RequestType | undefined = undefined
Parameters
- key: string
Optionaltype: T
Returns ValueRequestDecorator<T, Place<RescueStepClass, undefined>>
Requests data from the step a rescue step rescues, on a parameter of its constructor: what that step contributed under
keyin the attempt that failed, checked bytype. With no type written, the parameter's own type is checked, as the compiler records it, which it can say only fornumber,string,booleanand a class that serialises itself.The data is required unless
typeis wrapped inoptional.