UNPKG

mini-fetchy

Version:

Custom fetch client for reusable HTTP calls

8 lines (7 loc) 238 B
type FetchOptions = { baseUrl?: string; headers?: Record<string, string>; timeout?: number; }; export declare const createFetchClient: (config: FetchOptions) => (url: string, options?: RequestInit) => Promise<any>; export {};