(config: AxiosRequestConfig)
| 16 | }); |
| 17 | |
| 18 | export const instance = <T>(config: AxiosRequestConfig): Promise<T> => { |
| 19 | const source = Axios.CancelToken.source(); |
| 20 | const promise = AXIOS_INSTANCE({ ...config, cancelToken: source.token }).then( |
| 21 | ({ data }) => data, |
| 22 | ); |
| 23 | return promise; |
| 24 | }; |
no outgoing calls
no test coverage detected