react-query-firebase 2.0.0-rc2 → 2.0.0-rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { FirebaseFirestoreTypes, QueryConstraint, QueryNonFilterConstraint } from "@react-native-firebase/firestore";
2
2
  import { UseInfiniteQueryOptions as UseReactInfiniteQueryOptions, QueryKey, UseInfiniteQueryResult, InfiniteData } from "@tanstack/react-query";
3
- type UseInfiniteQueryOptions<AppModelType extends FirebaseFirestoreTypes.DocumentData = FirebaseFirestoreTypes.DocumentData, TQueryKey extends QueryKey = QueryKey> = {
4
- options: Omit<UseReactInfiniteQueryOptions<AppModelType[], Error, InfiniteData<AppModelType[]>, AppModelType[], TQueryKey, QueryConstraint>, "queryFn"> & Required<Pick<UseReactInfiniteQueryOptions<AppModelType[], Error, InfiniteData<AppModelType[]>, AppModelType[], TQueryKey, QueryConstraint>, "queryKey">>;
3
+ type UseInfiniteQueryOptions<AppModelType extends FirebaseFirestoreTypes.DocumentData = FirebaseFirestoreTypes.DocumentData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = {
4
+ options: Omit<UseReactInfiniteQueryOptions<AppModelType[], Error, InfiniteData<AppModelType[]>, AppModelType[], TQueryKey, TPageParam>, "queryFn"> & Required<Pick<UseReactInfiniteQueryOptions<AppModelType[], Error, InfiniteData<AppModelType[]>, AppModelType[], TQueryKey, TPageParam>, "queryKey">>;
5
5
  query: FirebaseFirestoreTypes.Query<AppModelType>;
6
6
  queryConstraints?: QueryConstraint[] | QueryNonFilterConstraint[];
7
7
  compositeFilter?: FirebaseFirestoreTypes.QueryCompositeFilterConstraint;
package/package.json CHANGED
@@ -70,5 +70,5 @@
70
70
  "docs:build": "vitepress build docs",
71
71
  "docs:preview": "vitepress preview docs"
72
72
  },
73
- "version": "2.0.0-rc2"
73
+ "version": "2.0.0-rc3"
74
74
  }
@@ -16,7 +16,8 @@ import {
16
16
 
17
17
  type UseInfiniteQueryOptions<
18
18
  AppModelType extends FirebaseFirestoreTypes.DocumentData = FirebaseFirestoreTypes.DocumentData,
19
- TQueryKey extends QueryKey = QueryKey
19
+ TQueryKey extends QueryKey = QueryKey,
20
+ TPageParam = unknown
20
21
  > = {
21
22
  options: Omit<
22
23
  UseReactInfiniteQueryOptions<
@@ -25,7 +26,7 @@ type UseInfiniteQueryOptions<
25
26
  InfiniteData<AppModelType[]>,
26
27
  AppModelType[],
27
28
  TQueryKey,
28
- QueryConstraint
29
+ TPageParam
29
30
  >,
30
31
  "queryFn"
31
32
  > &
@@ -37,7 +38,7 @@ type UseInfiniteQueryOptions<
37
38
  InfiniteData<AppModelType[]>,
38
39
  AppModelType[],
39
40
  TQueryKey,
40
- QueryConstraint
41
+ TPageParam
41
42
  >,
42
43
  "queryKey"
43
44
  >