@tanstack/query-core
Version:
The framework agnostic core that powers TanStack Query
16 lines (13 loc) • 743 B
text/typescript
import { aE as QueryBehavior, z as InfiniteData, J as InfiniteQueryPageParamsOptions } from './queryClient-c9f8057a.js';
import './removable.cjs';
import './subscribable.cjs';
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 };