@wisemen/vue-core-api-utils 0.0.1-beta.0 → 0.0.1-beta.2
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.
- package/dist/index.d.ts +2 -3
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _tanstack_vue_query0 from "@tanstack/vue-query";
|
|
2
1
|
import { Result } from "neverthrow";
|
|
3
2
|
import * as vue0 from "vue";
|
|
4
3
|
import { ComputedRef, MaybeRef, Ref, UnwrapRef } from "vue";
|
|
@@ -179,7 +178,7 @@ declare function useKeysetInfiniteQuery<TData>(options: KeysetInfiniteQueryOptio
|
|
|
179
178
|
isFetchingNextPage: vue0.ComputedRef<boolean>;
|
|
180
179
|
isLoading: vue0.ComputedRef<boolean>;
|
|
181
180
|
isSuccess: vue0.ComputedRef<boolean>;
|
|
182
|
-
fetchNextPage: () => Promise<
|
|
181
|
+
fetchNextPage: () => Promise<void>;
|
|
183
182
|
refetch: () => Promise<void>;
|
|
184
183
|
result: vue0.ComputedRef<KeysetPaginationResult<TData>>;
|
|
185
184
|
};
|
|
@@ -221,7 +220,7 @@ declare function useOffsetInfiniteQuery<TData>(options: OffsetInfiniteQueryOptio
|
|
|
221
220
|
isFetchingNextPage: vue0.ComputedRef<boolean>;
|
|
222
221
|
isLoading: vue0.ComputedRef<boolean>;
|
|
223
222
|
isSuccess: vue0.ComputedRef<boolean>;
|
|
224
|
-
fetchNextPage: () => Promise<
|
|
223
|
+
fetchNextPage: () => Promise<void>;
|
|
225
224
|
refetch: () => Promise<void>;
|
|
226
225
|
result: vue0.ComputedRef<OffsetPaginationResult<TData>>;
|
|
227
226
|
};
|
package/dist/index.js
CHANGED
|
@@ -33402,7 +33402,9 @@ function useKeysetInfiniteQuery(options) {
|
|
|
33402
33402
|
isFetchingNextPage: (0, vue_exports.computed)(() => infiniteQuery.isFetchingNextPage.value),
|
|
33403
33403
|
isLoading: (0, vue_exports.computed)(() => infiniteQuery.isLoading.value),
|
|
33404
33404
|
isSuccess: (0, vue_exports.computed)(() => !hasError.value),
|
|
33405
|
-
fetchNextPage
|
|
33405
|
+
fetchNextPage: async () => {
|
|
33406
|
+
await fetchNextPage();
|
|
33407
|
+
},
|
|
33406
33408
|
refetch: async () => {
|
|
33407
33409
|
await infiniteQuery.refetch();
|
|
33408
33410
|
},
|
|
@@ -33466,7 +33468,9 @@ function useOffsetInfiniteQuery(options) {
|
|
|
33466
33468
|
isFetchingNextPage: (0, vue_exports.computed)(() => infiniteQuery.isFetchingNextPage.value),
|
|
33467
33469
|
isLoading: (0, vue_exports.computed)(() => infiniteQuery.isLoading.value),
|
|
33468
33470
|
isSuccess: (0, vue_exports.computed)(() => !hasError.value),
|
|
33469
|
-
fetchNextPage
|
|
33471
|
+
fetchNextPage: async () => {
|
|
33472
|
+
await fetchNextPage();
|
|
33473
|
+
},
|
|
33470
33474
|
refetch: async () => {
|
|
33471
33475
|
await infiniteQuery.refetch();
|
|
33472
33476
|
},
|