UNPKG

huddle-record

Version:

Record is a Object-Relational Mapping (ORM) TypeScript plugin that makes it easy to work with data.

14 lines (13 loc) 771 B
import type { AxiosResponse } from 'axios'; import type { AxiosRequestConfig } from 'axios'; export default class Http { static get<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse>; static post<T>(url: string, data?: any, config?: AxiosRequestConfig): Promise<AxiosResponse>; static put<T>(url: string, data?: any, config?: AxiosRequestConfig): Promise<AxiosResponse>; static patch<T>(url: string, data?: any, config?: AxiosRequestConfig): Promise<AxiosResponse>; static head<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse>; static delete<T>(url: string, config?: AxiosRequestConfig): Promise<AxiosResponse>; private static makeRequest; private static logRequest; private static logResponse; }