Type Alias: Fetcher
Fetcher = (
request) =>Promise<unknown>
Defined in: fetcher.ts:17
Performs one HTTP request and resolves with the parsed response body. It must reject when the request fails, so the UI can show the error. This is where the app adds its base URL, auth headers, retries or SDK client.
Parameters
| Parameter | Type |
|---|---|
request | FetcherRequest |
Returns
Promise<unknown>