UNPKG

api-wizard

Version:

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

11 lines (10 loc) 545 B
import { Http, Option } from "./interfaces/index.js"; type Handler<T> = { [p in keyof T]: (option?: Option) => Http; }; declare function handler<T extends Record<string, string>>(obj: T, globalOption?: Option): Handler<T>; export { handler }; export * from "./utils/index.js"; export type { FetchResponse, FetchRequestConfig, FetchParams, ValidateStatus } from "./interfaces/Fetch.js"; export type { Http, FetchClient } from "./interfaces/Http.js"; export type { Interceptor, TokenConfig, Option, DataType } from "./interfaces/Property.js";