UNPKG

@tanstack/query-core

Version:

The framework agnostic core that powers TanStack Query

16 lines (13 loc) 741 B
import { b7 as QueryBehavior, a5 as InfiniteData, ab as InfiniteQueryPageParamsOptions } from './hydration-BaHDIfRR.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 };