From c55de7fc8a3e84504b3cd8a987a84c84f9e042c0 Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Sun, 29 Sep 2024 15:24:55 +0300 Subject: [PATCH] Try to fix exported types --- packages/toolkit/src/query/index.ts | 2 ++ packages/toolkit/src/query/react/buildHooks.ts | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/toolkit/src/query/index.ts b/packages/toolkit/src/query/index.ts index f546eba34e..21e042464c 100644 --- a/packages/toolkit/src/query/index.ts +++ b/packages/toolkit/src/query/index.ts @@ -25,6 +25,8 @@ export type { EndpointDefinition, EndpointBuilder, QueryDefinition, + InfiniteQueryDefinition, + InfiniteQueryExtraOptions, MutationDefinition, MutationExtraOptions, TagDescription, diff --git a/packages/toolkit/src/query/react/buildHooks.ts b/packages/toolkit/src/query/react/buildHooks.ts index e3d9bfef72..7d1a540cb7 100644 --- a/packages/toolkit/src/query/react/buildHooks.ts +++ b/packages/toolkit/src/query/react/buildHooks.ts @@ -8,10 +8,12 @@ import type { Api, ApiContext, ApiEndpointMutation, + ApiEndpointInfiniteQuery, ApiEndpointQuery, BaseQueryFn, CoreModule, EndpointDefinitions, + InfiniteQueryDefinition, MutationActionCreatorResult, MutationDefinition, MutationResultSelectorResult, @@ -50,8 +52,7 @@ import { UNINITIALIZED_VALUE } from './constants' import type { ReactHooksModuleOptions } from './module' import { useStableQueryArgs } from './useSerializedStableValue' import { useShallowStableValue } from './useShallowStableValue' -import type { InfiniteQueryDefinition } from '@internal/query/endpointDefinitions' -import type { ApiEndpointInfiniteQuery } from '@internal/query/core/module' + import type { InfiniteQueryActionCreatorResult } from '@internal/query/core/buildInitiate' import type { InfiniteData,