fix: request ts 类型问题

This commit is contained in:
winixt 2024-03-25 11:01:22 +08:00
parent 46e42d4344
commit 940481c504

View File

@ -20,7 +20,7 @@ interface RequestPluginOption {
export type RequestOptions = AxiosRequestConfig & RequestPluginOption;
export function request(url: string, data?: null | Record<string, any>, options?: AxiosRequestConfig & RequestPluginOption): Promise<any>;
export function request(url: string, data?: null | Record<string, any>, options?: (AxiosRequestConfig & RequestPluginOption) | string): Promise<any>;
export function useRequest(
url: string,
data?: null | Record<string, any>,