(value: T, msg: string)
| 3 | import type { ExecFileFn } from "../../src/converters/types"; |
| 4 | |
| 5 | function requireDefined<T>(value: T, msg: string): NonNullable<T> { |
| 6 | if (value === undefined || value === null) throw new Error(msg); |
| 7 | return value as NonNullable<T>; |
| 8 | } |
| 9 | |
| 10 | // --- capture/inspect execFile calls ----------------------------------------- |
| 11 | type Call = { cmd: string; args: string[] }; |