Skip to content

Commit b209187

Browse files
author
sunss
committed
chore(utils/http.ts): type fix
1 parent c74f30b commit b209187

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/http.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ instance.interceptors.response.use(
7171
},
7272
);
7373

74-
const request = <T = any>(config: AxiosRequestConfig, options?: AxiosRequestConfig): Promise<T> => {
74+
const request = <T = any>(
75+
config: AxiosRequestConfig | string,
76+
options?: AxiosRequestConfig,
77+
): Promise<T> => {
7578
if (typeof config === 'string') {
7679
if (!options) {
7780
return instance.request<T, T>({

0 commit comments

Comments
 (0)