UNPKG

api-wizard

Version:

A powerful TypeScript wrapper for native Fetch API with token management, interceptors, and type-safe HTTP requests

15 lines (14 loc) 498 B
import { FetchRequestConfig } from "./interface"; import { Option } from "./interface"; interface CreateFetchDefaultsProps { baseUrl: string; option?: Option; } interface FetchDefaults { baseURL: string; headers: HeadersInit; credentials: RequestCredentials; } declare const createFetchDefaults: ({ baseUrl, option, }: Partial<CreateFetchDefaultsProps>) => FetchDefaults; declare const fetchRequestConfig: FetchRequestConfig; export { createFetchDefaults, fetchRequestConfig };