Type Alias: FetchLike
ts
type FetchLike = (url, init) => Promise<Response>;Defined in: src/core/schemas/clientConfig.ts:14
The shape the client calls fetch by.
Narrower than typeof globalThis.fetch on purpose: undici's fetch declares its own RequestInit — one with dispatcher and without duplex — and a proxy wrapper would not type-check against the global signature.
Parameters
| Parameter | Type |
|---|---|
url | string |
init | RequestInit |
Returns
Promise<Response>