setFetch( fetch: | { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response>; } | WrappedFetch,): void Parameters
- fetch:
| {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}
| WrappedFetch- {
(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
(input: string | Request | URL, init?: RequestInit): Promise<Response>;
}- (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
Parameters
- input: RequestInfo | URL
Optional
init: RequestInit
Returns Promise<Response>
- (input: string | Request | URL, init?: RequestInit): Promise<Response>
Parameters
- input: string | Request | URL
Optional
init: RequestInit
Returns Promise<Response>
- WrappedFetch
Returns void
Allows customizing the fetch implementation used by the generator.