From e646e9f100f1b60815bb171916d1449e932b29a8 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Wed, 9 Oct 2024 18:04:32 +0300 Subject: [PATCH] Fix serializeQueryTags type --- packages/toolkit/etc/rtk-query-react.api.md | 2 +- packages/toolkit/etc/rtk-query.api.md | 2 +- packages/toolkit/src/query/createApi.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/toolkit/etc/rtk-query-react.api.md b/packages/toolkit/etc/rtk-query-react.api.md index e5b5d3bedf..d6945f469b 100644 --- a/packages/toolkit/etc/rtk-query-react.api.md +++ b/packages/toolkit/etc/rtk-query-react.api.md @@ -159,7 +159,7 @@ export interface CreateApiOptions< refetchOnFocus?: boolean refetchOnMountOrArgChange?: boolean | number refetchOnReconnect?: boolean - serializeQueryArgs?: SerializeQueryArgs> + serializeQueryArgs?: SerializeQueryArgs tagTypes?: readonly TagTypes[] } diff --git a/packages/toolkit/etc/rtk-query.api.md b/packages/toolkit/etc/rtk-query.api.md index 160ec14fe7..d43183d3de 100644 --- a/packages/toolkit/etc/rtk-query.api.md +++ b/packages/toolkit/etc/rtk-query.api.md @@ -145,7 +145,7 @@ export interface CreateApiOptions< refetchOnFocus?: boolean refetchOnMountOrArgChange?: boolean | number refetchOnReconnect?: boolean - serializeQueryArgs?: SerializeQueryArgs> + serializeQueryArgs?: SerializeQueryArgs structuralSharing?: boolean tagTypes?: readonly TagTypes[] } diff --git a/packages/toolkit/src/query/createApi.ts b/packages/toolkit/src/query/createApi.ts index 9f759c758f..d360ededb0 100644 --- a/packages/toolkit/src/query/createApi.ts +++ b/packages/toolkit/src/query/createApi.ts @@ -92,7 +92,7 @@ export interface CreateApiOptions< /** * Accepts a custom function if you have a need to change the creation of cache keys for any reason. */ - serializeQueryArgs?: SerializeQueryArgs> + serializeQueryArgs?: SerializeQueryArgs /** * Endpoints are just a set of operations that you want to perform against your server. You define them as an object using the builder syntax. There are two basic endpoint types: [`query`](../../rtk-query/usage/queries) and [`mutation`](../../rtk-query/usage/mutations). */