import axios , { AxiosPromise , AxiosRequestConfig } from 'axios' ; function param { AxiosRequestConfig } object returns { AxiosPromise } export const makeRequest = ( { url = '/' , method = 'GET' , params = { } , data = { } , headers = { } , } ) : AxiosPromise < any > => { return axios ( { url , method , params , data , headers } ) ; } ;