From 3d1ca3f112e0b5e63e3e218316eb805ad2f680ee Mon Sep 17 00:00:00 2001 From: Julien Karst Date: Wed, 3 Nov 2021 17:08:27 +0100 Subject: [PATCH] feat: custom type of `BaseQueryApi` --- packages/toolkit/src/query/baseQueryTypes.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/toolkit/src/query/baseQueryTypes.ts b/packages/toolkit/src/query/baseQueryTypes.ts index 2b693b4bd8..ee789eec08 100644 --- a/packages/toolkit/src/query/baseQueryTypes.ts +++ b/packages/toolkit/src/query/baseQueryTypes.ts @@ -25,10 +25,11 @@ export type BaseQueryFn< Result = unknown, Error = unknown, DefinitionExtraOptions = {}, - Meta = {} + Meta = {}, + QueryApi extends BaseQueryApi = BaseQueryApi, > = ( args: Args, - api: BaseQueryApi, + api: QueryApi, extraOptions: DefinitionExtraOptions ) => MaybePromise>