(value: number | undefined)
| 693 | } |
| 694 | |
| 695 | function normalizeTimeoutMs(value: number | undefined): number | undefined { |
| 696 | if (!Number.isFinite(value)) return undefined; |
| 697 | const timeout = Math.floor(value as number); |
| 698 | if (timeout <= 0) return undefined; |
| 699 | return timeout; |
| 700 | } |
| 701 | |
| 702 | function watchCommandAbort( |
| 703 | child: ChildProcess, |
no test coverage detected