@tanstack/query-core
Version:
The framework agnostic core that powers TanStack Query
16 lines (13 loc) • 741 B
TypeScript
import { aE as QueryBehavior, z as InfiniteData, J as InfiniteQueryPageParamsOptions } from './queryClient-5b892aba.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 };