UNPKG

api-wizard

Version:

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

8 lines (7 loc) 266 B
import { Http, Option } from "./interface"; 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 "./interface";