SinkFetch
type SinkFetch = (input, init?) => Promise<Response>;Defined in: src/sinks/shared.ts:13
The fetch shape sinks call (inject one for tests, proxies, or custom agents).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
string | URL | Request |
init? |
RequestInit |
Returns
Section titled “Returns”Promise<Response>