- setFetch(fetch): void
Parameters
- fetch: {
(input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
(input: string | URL | Request, init?: RequestInit): Promise<Response>;
}- (input, init?): Promise<Response>
Parameters
- input: URL | RequestInfo
Optional
init: RequestInit
Returns Promise<Response>
- (input, init?): Promise<Response>
Parameters
- input: string | URL | Request
Optional
init: RequestInit
Returns Promise<Response>
Returns void
Use to override the
fetch
implementation, e.g. to use node-fetch