(axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration)
| 131 | * @export |
| 132 | */ |
| 133 | export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { |
| 134 | return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { |
| 135 | const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; |
| 136 | return axios.request<T, R>(axiosRequestArgs); |
| 137 | }; |
| 138 | } |
no outgoing calls
no test coverage detected