Function: toNetworkError()
ts
function toNetworkError(err, url): NetworkError;Defined in: src/core/errors/fromResponse.ts:59
Wrap whatever fetch rejected with into a NetworkError, preserving the original as cause.
Parameters
| Parameter | Type |
|---|---|
err | unknown |
url | string |