(error: unknown)
| 54 | const TERMINAL_ERRORS: ReadonlySet<DebugErrorKind> = new Set(['unauthorized', 'forbidden', 'not_found']); |
| 55 | |
| 56 | export function asDebugError(error: unknown): DebugApiError | null { |
| 57 | return error instanceof DebugApiError ? error : null; |
| 58 | } |
| 59 | |
| 60 | export function isTerminalError(error: unknown): boolean { |
| 61 | const debugError = asDebugError(error); |
no outgoing calls
no test coverage detected