FetchFunction: (
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>
Injectable Fetch-compatible function, primarily for runtimes and tests.