We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74f30b commit b209187Copy full SHA for b209187
src/utils/http.ts
@@ -71,7 +71,10 @@ instance.interceptors.response.use(
71
},
72
);
73
74
-const request = <T = any>(config: AxiosRequestConfig, options?: AxiosRequestConfig): Promise<T> => {
+const request = <T = any>(
75
+ config: AxiosRequestConfig | string,
76
+ options?: AxiosRequestConfig,
77
+): Promise<T> => {
78
if (typeof config === 'string') {
79
if (!options) {
80
return instance.request<T, T>({
0 commit comments