Skip to content

Commit edd7867

Browse files
committed
fix(react-query): clean up JSDoc formatting and improve type imports in useInfiniteQuery and useSuspenseInfiniteQuery
- Standardized spacing in deprecated JSDoc comments for clarity. - Reorganized type imports in useSuspenseInfiniteQuery for better readability.
1 parent 6866f7a commit edd7867

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/react-query/src/useInfiniteQuery.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function useInfiniteQuery<
2525
>,
2626
): UseInfiniteQueryResult<TData, TError>
2727
/**
28-
* @deprecated This function overload will be removed in the next major version.
28+
* @deprecated This function overload will be removed in the next major version.
2929
*/
3030
export function useInfiniteQuery<
3131
TQueryFnData = unknown,
@@ -46,7 +46,7 @@ export function useInfiniteQuery<
4646
>,
4747
): UseInfiniteQueryResult<TData, TError>
4848
/**
49-
* @deprecated This function overload will be removed in the next major version.
49+
* @deprecated This function overload will be removed in the next major version.
5050
*/
5151
export function useInfiniteQuery<
5252
TQueryFnData = unknown,

packages/react-query/src/useSuspenseInfiniteQuery.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { useInfiniteQuery } from './useInfiniteQuery'
2-
import type { WithRequired } from './../../query-core/src/types'
3-
import type { InfiniteData, OmitKeyof, QueryKey } from '@tanstack/query-core'
2+
import type {
3+
InfiniteData,
4+
OmitKeyof,
5+
QueryKey,
6+
WithRequired,
7+
} from '@tanstack/query-core'
48
import type { UseInfiniteQueryOptions, UseInfiniteQueryResult } from './types'
59

610
export interface UseSuspenseInfiniteQueryResult<

0 commit comments

Comments
 (0)