mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
fix: request ts 类型问题
This commit is contained in:
parent
46e42d4344
commit
940481c504
2
packages/fes-plugin-request/types.d.ts
vendored
2
packages/fes-plugin-request/types.d.ts
vendored
@ -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>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user