Interface RescueStepBuilder<C>
interface RescueStepBuilder<C extends RescueStepClass> {
needs(
...requests: Tokens<ConstructorParameters<C>, Place<C, undefined>>,
): this;
run(
...requests: Tokens<
Parameters<InstanceType<C>["run"]>,
Place<InstanceType<C>, "run">,
>,
): this;
}
needs(
...requests: Tokens<ConstructorParameters<C>, Place<C, undefined>>,
): this;
run(
...requests: Tokens<
Parameters<InstanceType<C>["run"]>,
Place<InstanceType<C>, "run">,
>,
): this;
}
Type Parameters
- C extends RescueStepClass
The class of the rescue step.
Puts a rescue step of the class
Ctogether for a step's builder, which takes it in itsrescue: started by the rescue step class's staticbuilder(). A rescue step class declared without decorators is given its requests by position, withneedsandrun.