Skip to main content

Type Alias: FetchImplementation

FetchImplementation = (url, init) => Promise<Response>

Defined in: client/GraphQLClient.ts:84

The subset of fetch() the client calls: a URL string and a RequestInit, resolving to a standard Response. Narrower than typeof fetch so host-runtime implementations (undici, Nitro's event.fetch, test doubles) fit without matching every overload.

Parameters​

url​

string

init​

RequestInit

Returns​

Promise<Response>