From 940481c504d9c131ca2b4a18df63dcedb6408763 Mon Sep 17 00:00:00 2001 From: winixt Date: Mon, 25 Mar 2024 11:01:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20request=20ts=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-request/types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,