Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | /**
* What a failed child process left behind, as `ExecFailure.of` reads it from
* the value a `catch` receives.
*
* The streams and status are `undefined` when the thrown value does not carry
* them -- a spawn that never started, or a non-Error throw -- rather than `""`,
* so a caller's `||` or `??` fallback behaves as it did on the raw error.
*/
interface IExecFailure {
message: string;
stdout: string | undefined;
stderr: string | undefined;
/** The child's exit code, when it ran and exited. */
status: number | undefined;
}
export default IExecFailure;
|