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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | string | URL |
init? | RequestInit |
Returns
Section titled “Returns”Promise<Response>