| 1 | interface APIError { |
| 2 | data: { |
| 3 | error: { |
| 4 | message: string |
| 5 | } |
| 6 | } |
| 7 | } |
| 8 | const isAPIError = (error: APIError | unknown): error is APIError => { |
| 9 | return ( |
| 10 | typeof error === 'object' && |
nothing calls this directly
no outgoing calls
no test coverage detected