Interface Endings
interface Endings {
abnormalTermination: (errorMessage: string) => EndsAbnormally;
failure: (reason: string | Reason) => EndsInFailure;
outcome: (ending: Ending) => Outcome;
skip: EndsInSkip;
skipBecause: (reason: string | Reason) => EndsInSkip;
success: EndsInSuccess;
}
abnormalTermination: (errorMessage: string) => EndsAbnormally;
failure: (reason: string | Reason) => EndsInFailure;
outcome: (ending: Ending) => Outcome;
skip: EndsInSkip;
skipBecause: (reason: string | Reason) => EndsInSkip;
success: EndsInSuccess;
}
Properties
Readonlyabnormal Termination
The attempt terminates abnormally, with an error carrying the message.
Readonlyfailure
The attempt fails, for a reason, or only its code.
Readonlyoutcome
The outcome a step's run returns to end this way, its reason's
details captured now, as a step's helpers capture them.
Readonlyskip
The step skips itself, giving no reason.
Readonlyskip Because
The step skips itself, for a reason, or only its code.
Readonlysuccess
The attempt succeeds.
Makes each Ending, and gives the outcome it stands for.