Signature of a fetch method used by the API clients.
The request URL.
Initialization options passed to fetch.
fetch
A promise that resolves with the Response.
This abstraction allows the underlying implementation to be replaced, for example in tests or different runtime environments.
const method: FetchMethod = async (url, init) => { return fetch(url, init)} Copy
const method: FetchMethod = async (url, init) => { return fetch(url, init)}
Signature of a fetch method used by the API clients.