( stdout: CleanupStream, content: string, )
| 5 | } |
| 6 | |
| 7 | export function writeTerminalCleanup( |
| 8 | stdout: CleanupStream, |
| 9 | content: string, |
| 10 | ): void { |
| 11 | const fd = stdout.fd |
| 12 | if (typeof fd === 'number' && Number.isInteger(fd) && fd >= 0) { |
| 13 | writeSync(fd, content) |
| 14 | return |
| 15 | } |
| 16 | |
| 17 | stdout.write(content) |
| 18 | } |
no test coverage detected