import { AxiosInstance } from 'axios' ; import { axiosInstance , IConfig } from './initRequest' ; class HttpRequest { api : AxiosInstance ; constructor ( ) { this . api = axiosInstance ; } async get ( url , config ? ) { return this . api . get ( url , config ) ; } } const httpRequest = new HttpRequest ( ) ; export default httpRequest ;