CustomFetch()
type CustomFetch = (url: string, options?: RequestInit & {
timeout?: number;
}) => Promise<CustomFetchResponse>;
Custom fetch function type for alternative HTTP clients
Parameters
| Parameter | Type |
|---|---|
url | string |
options? | RequestInit & { timeout?: number; } |
Returns
Promise<CustomFetchResponse>