From ac4bac1a5d75c8417cf2d529fc26a2489206d6eb Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Sat, 14 Dec 2024 18:25:14 -0500 Subject: [PATCH] Fix infinite query selector arg type --- packages/toolkit/src/query/core/buildSelectors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/toolkit/src/query/core/buildSelectors.ts b/packages/toolkit/src/query/core/buildSelectors.ts index d270c77493..89ac464a3c 100644 --- a/packages/toolkit/src/query/core/buildSelectors.ts +++ b/packages/toolkit/src/query/core/buildSelectors.ts @@ -1,6 +1,7 @@ import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs' import type { EndpointDefinitions, + InfiniteQueryArgFrom, InfiniteQueryDefinition, MutationDefinition, QueryArgFrom, @@ -108,7 +109,7 @@ type InfiniteQueryResultSelectorFactory< Definition extends InfiniteQueryDefinition, RootState, > = ( - queryArg: QueryArgFrom | SkipToken, + queryArg: InfiniteQueryArgFrom | SkipToken, ) => (state: RootState) => InfiniteQueryResultSelectorResult export type InfiniteQueryResultSelectorResult<