Skip to content

FetchLike

type FetchLike = (input: string | URL, init?: RequestInit) => Promise<Response>;

The fetch implementation the SDK uses for callbacks and egress. Injectable so tests can supply a mock; defaults to the global fetch.

ParameterType
inputstring | URL
init?RequestInit

Promise<Response>