mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
[react-query] expose canFetchMore boolean on useInfiniteQuery result (#43771)
* fix: expose canFetchMore boolean on useInfiniteQuery result * Update types/react-query/index.d.ts Co-Authored-By: Igor Oleinikov <igor@oleinikov.ru> Co-authored-by: Igor Oleinikov <igor@oleinikov.ru>
This commit is contained in:
co-authored by
Igor Oleinikov
parent
8f19d2dd2e
commit
f2cdef2bb9
Vendored
+1
@@ -289,6 +289,7 @@ export type PaginatedQueryResult<TResult> =
|
||||
export interface InfiniteQueryResult<TResult, TMoreVariable> extends QueryResultBase<TResult[]> {
|
||||
data: TResult[];
|
||||
isFetchingMore: boolean;
|
||||
canFetchMore: boolean | undefined;
|
||||
fetchMore: (moreVariable?: TMoreVariable | false) => Promise<TResult[]> | undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user