Fetcher: (
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 HTTP function this library calls.
An explicit signature rather than
typeof fetch, because that type is not the same under @cloudflare/workers-types as it is under @types/node and a library that runs on both cannot mean two things by it.