(e: unknown)
| 25 | * this.name, so string matching silently fails in production. |
| 26 | */ |
| 27 | export function isAbortError(e: unknown): boolean { |
| 28 | return ( |
| 29 | e instanceof AbortError || |
| 30 | e instanceof APIUserAbortError || |
| 31 | (e instanceof Error && e.name === 'AbortError') |
| 32 | ) |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Custom error class for configuration file parsing errors |
no outgoing calls
no test coverage detected