UNPKG

@tanstack/query-core

Version:

The framework agnostic core that powers TanStack Query

16 lines (13 loc) 740 B
import { aX as QueryBehavior, X as InfiniteData, a1 as InfiniteQueryPageParamsOptions } from './hydration-CocLapol.js'; import './removable.js'; import './subscribable.js'; declare function infiniteQueryBehavior<TQueryFnData, TError, TData, TPageParam>(pages?: number): QueryBehavior<TQueryFnData, TError, InfiniteData<TData, TPageParam>>; /** * Checks if there is a next page. */ declare function hasNextPage(options: InfiniteQueryPageParamsOptions<any, any>, data?: InfiniteData<unknown>): boolean; /** * Checks if there is a previous page. */ declare function hasPreviousPage(options: InfiniteQueryPageParamsOptions<any, any>, data?: InfiniteData<unknown>): boolean; export { hasNextPage, hasPreviousPage, infiniteQueryBehavior };