Skip to content

Commit

Permalink
fix: request ts 类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Mar 25, 2024
1 parent f1330bb commit 1c676b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fes-plugin-request/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 1c676b8

Please sign in to comment.