Skip to main content

CustomFetch()

type CustomFetch = (url: string, options?: RequestInit & {
timeout?: number;
}) => Promise<CustomFetchResponse>;

Custom fetch function type for alternative HTTP clients

Parameters

ParameterType
urlstring
options?RequestInit & { timeout?: number; }

Returns

Promise<CustomFetchResponse>