UNPKG

946 BTypeScriptView Raw
1import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
2import { Observable } from 'rxjs';
3export declare class HttpService {
4 private readonly instance;
5 constructor(instance?: AxiosInstance);
6 request<T = any>(config: AxiosRequestConfig): Observable<AxiosResponse<T>>;
7 get<T = any>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>;
8 delete<T = any>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>;
9 head<T = any>(url: string, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>;
10 post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>;
11 put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>;
12 patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Observable<AxiosResponse<T>>;
13 get axiosRef(): AxiosInstance;
14 private makeObservable;
15}