mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +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 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(
|
export function useRequest(
|
||||||
url: string,
|
url: string,
|
||||||
data?: null | Record<string, any>,
|
data?: null | Record<string, any>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user