From 4865124254c6ad5aaa0e82e559c79a6d87599b04 Mon Sep 17 00:00:00 2001 From: Homyee King Date: Tue, 21 May 2024 16:17:48 +0800 Subject: [PATCH] fix(plugin-request): default type for TParams (#6885) --- packages/plugin-request/src/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-request/src/hooks.ts b/packages/plugin-request/src/hooks.ts index c6e2d2a43b..bd51745a7c 100644 --- a/packages/plugin-request/src/hooks.ts +++ b/packages/plugin-request/src/hooks.ts @@ -7,7 +7,7 @@ interface RequestResult extends Result { request: (...args: P) => Promise; } -export function useRequest( +export function useRequest( service: string | AxiosRequestConfig | Service, options?: Options, plugins?: Plugin[]) {