UNPKG

@tuentyfaiv/http

Version:

Library for http requests based on fetch

11 lines (10 loc) 455 B
import type { HttpContract, HttpConfigInitial, HttpMethods, HttpGlobalAction } from "../typing/classes/http.typing.js"; type Http = HttpMethods & HttpInstance; export declare class HttpInstance implements HttpContract { #private; static instance: Record<string, Http>; private constructor(); static create(api: string, config?: HttpConfigInitial): Http; global: <T = string>(config: HttpGlobalAction<T>) => Promise<void>; } export {};