UNPKG

angles-javascript-client

Version:

This is the javascript client for the Angles Dashboard. It allows you to store your test results.

11 lines (10 loc) 592 B
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'; export declare class BaseRequests { protected axios: AxiosInstance; protected constructor(axiosInstance: AxiosInstance); protected success<T>(response: AxiosResponse<T>): T; protected post<T>(url: string, body: any, config?: AxiosRequestConfig): Promise<T>; protected get<T>(url: string, config?: AxiosRequestConfig): Promise<T>; protected put<T>(url: string, body: any, config?: AxiosRequestConfig): Promise<T>; protected delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>; }