FetchLike: (
input: string | URL,
init?: RequestInit,
) => Promise<Awaited<ReturnType<typeof globalThis.fetch>>>
Type Declaration
-
- (
input: string | URL,
init?: RequestInit,
): Promise<Awaited<ReturnType<typeof globalThis.fetch>>>
-
Parameters
- input: string | URL
Optionalinit: RequestInit
Returns Promise<Awaited<ReturnType<typeof globalThis.fetch>>>
The subset of the global
fetchsignature the SDK uses.Injecting a transport lets runtimes and tests supply their own implementation.