Type Alias FetchImplementation
FetchImplementation: (
input: string | URL | Request,
init?: RequestInit,
) => Promise<Response>
Type Declaration
-
- (input: string | URL | Request, init?: RequestInit): Promise<Response>
-
Parameters
- input: string | URL | Request
Optionalinit: RequestInit
Returns Promise<Response>
The signature of a
fetch-compatible implementation. Implementations are invoked without a receiver, so pass a bound function when the source requires one (e.g.window.fetch.bind(window)).