(error: FetchError, responseStatus: number, backend: Backend)
| 189 | } |
| 190 | |
| 191 | function handleRequestError(error: FetchError, responseStatus: number, backend: Backend) { |
| 192 | throw new APIError(error.message, responseStatus, backend); |
| 193 | } |
| 194 | |
| 195 | export async function apiRequest( |
| 196 | path: string, |