(error: unknown)
| 31 | } |
| 32 | |
| 33 | export function isIgnorableStreamError(error: unknown): boolean { |
| 34 | const code = getErrorCode(error); |
| 35 | return code === "EPIPE" || code === "ECONNRESET"; |
| 36 | } |
| 37 | |
| 38 | export interface StreamErrorHandlerOptions { |
| 39 | logger?: Pick<Logger, "debug" | "warn">; |
no test coverage detected