Function: createFetcher()
createFetcher(
__namedParameters?):Fetcher
Defined in: fetcher.ts:93
A Fetcher over the global fetch, for APIs that only need a base URL and
static or per-request headers (e.g. a bearer token).
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { baseUrl?: string; headers?: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>); } |
__namedParameters.baseUrl? | string |
__namedParameters.headers? | Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>) |