import { AxiosInstance , AxiosRequestConfig } from 'axios' ; import { RestEndpoint } from '../types' ; import * as raw from './raw' ; export const get = < T = any > ( http , { url , config } ) => { return raw . get < T > ( http , url , config ) ; } ; export const post = < T = any > ( http , { url , config } , payload ? ) => { return raw . post < T > ( http , url , payload , config ) ; } ; export const put = < T = any > ( http , { url , config } , payload ? ) => { return raw . put < T > ( http , url , payload , config ) ; } ; export const del = < T = any > ( http , { url , config } ) => { return raw . del < T > ( http , url , config ) ; } ; export const request = < T = any > ( http , { url , config } ) => { return raw . http < T > ( http , url , config ) ; } ;