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[]) {