diff --git a/packages/fes-plugin-request/types.d.ts b/packages/fes-plugin-request/types.d.ts index 2c2b40c0..bfbc0db5 100644 --- a/packages/fes-plugin-request/types.d.ts +++ b/packages/fes-plugin-request/types.d.ts @@ -20,7 +20,7 @@ interface RequestPluginOption { export type RequestOptions = AxiosRequestConfig & RequestPluginOption; -export function request(url: string, data?: null | Record, options?: AxiosRequestConfig & RequestPluginOption): Promise; +export function request(url: string, data?: null | Record, options?: (AxiosRequestConfig & RequestPluginOption) | string): Promise; export function useRequest( url: string, data?: null | Record,