Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

constants.ts

19 lines491 Bytes

1export const infiniteQueryFunctions = [
2 'infiniteQueryOptions',
3 'useInfiniteQuery',
4 'useSuspenseInfiniteQuery',
5] as const
6​
7export type InfiniteQueryFunctions = (typeof infiniteQueryFunctions)[number]
8​
9export const checkedProperties = [
10 'queryFn',
11 'getPreviousPageParam',
12 'getNextPageParam',
13] as const
14​
15export type InfiniteQueryProperties = (typeof checkedProperties)[number]
16​
17export const sortRules = [
18 [['queryFn'], ['getPreviousPageParam', 'getNextPageParam']],
19] as const