@tanstack/vue-query 5.92.12 → 5.94.4
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/package.json +2 -2
- package/build/legacy/_tsup-dts-rollup.d.cts +0 -855
- package/build/legacy/_tsup-dts-rollup.d.ts +0 -855
- package/build/legacy/devtools/devtools.cjs +0 -258
- package/build/legacy/devtools/devtools.cjs.map +0 -1
- package/build/legacy/devtools/devtools.d.cts +0 -1
- package/build/legacy/devtools/devtools.d.ts +0 -1
- package/build/legacy/devtools/devtools.js +0 -238
- package/build/legacy/devtools/devtools.js.map +0 -1
- package/build/legacy/devtools/utils.cjs +0 -105
- package/build/legacy/devtools/utils.cjs.map +0 -1
- package/build/legacy/devtools/utils.d.cts +0 -5
- package/build/legacy/devtools/utils.d.ts +0 -5
- package/build/legacy/devtools/utils.js +0 -76
- package/build/legacy/devtools/utils.js.map +0 -1
- package/build/legacy/index.cjs +0 -75
- package/build/legacy/index.cjs.map +0 -1
- package/build/legacy/index.d.cts +0 -169
- package/build/legacy/index.d.ts +0 -169
- package/build/legacy/index.js +0 -34
- package/build/legacy/index.js.map +0 -1
- package/build/legacy/infiniteQueryOptions.cjs +0 -33
- package/build/legacy/infiniteQueryOptions.cjs.map +0 -1
- package/build/legacy/infiniteQueryOptions.d.cts +0 -3
- package/build/legacy/infiniteQueryOptions.d.ts +0 -3
- package/build/legacy/infiniteQueryOptions.js +0 -8
- package/build/legacy/infiniteQueryOptions.js.map +0 -1
- package/build/legacy/mutationCache.cjs +0 -40
- package/build/legacy/mutationCache.cjs.map +0 -1
- package/build/legacy/mutationCache.d.cts +0 -1
- package/build/legacy/mutationCache.d.ts +0 -1
- package/build/legacy/mutationCache.js +0 -15
- package/build/legacy/mutationCache.js.map +0 -1
- package/build/legacy/queryCache.cjs +0 -40
- package/build/legacy/queryCache.cjs.map +0 -1
- package/build/legacy/queryCache.d.cts +0 -1
- package/build/legacy/queryCache.d.ts +0 -1
- package/build/legacy/queryCache.js +0 -15
- package/build/legacy/queryCache.js.map +0 -1
- package/build/legacy/queryClient.cjs +0 -141
- package/build/legacy/queryClient.cjs.map +0 -1
- package/build/legacy/queryClient.d.cts +0 -1
- package/build/legacy/queryClient.d.ts +0 -1
- package/build/legacy/queryClient.js +0 -116
- package/build/legacy/queryClient.js.map +0 -1
- package/build/legacy/queryOptions.cjs +0 -33
- package/build/legacy/queryOptions.cjs.map +0 -1
- package/build/legacy/queryOptions.d.cts +0 -1
- package/build/legacy/queryOptions.d.ts +0 -1
- package/build/legacy/queryOptions.js +0 -8
- package/build/legacy/queryOptions.js.map +0 -1
- package/build/legacy/types.cjs +0 -19
- package/build/legacy/types.cjs.map +0 -1
- package/build/legacy/types.d.cts +0 -9
- package/build/legacy/types.d.ts +0 -9
- package/build/legacy/types.js +0 -1
- package/build/legacy/types.js.map +0 -1
- package/build/legacy/useBaseQuery.cjs +0 -143
- package/build/legacy/useBaseQuery.cjs.map +0 -1
- package/build/legacy/useBaseQuery.d.cts +0 -2
- package/build/legacy/useBaseQuery.d.ts +0 -2
- package/build/legacy/useBaseQuery.js +0 -128
- package/build/legacy/useBaseQuery.js.map +0 -1
- package/build/legacy/useInfiniteQuery.cjs +0 -39
- package/build/legacy/useInfiniteQuery.cjs.map +0 -1
- package/build/legacy/useInfiniteQuery.d.cts +0 -3
- package/build/legacy/useInfiniteQuery.d.ts +0 -3
- package/build/legacy/useInfiniteQuery.js +0 -14
- package/build/legacy/useInfiniteQuery.js.map +0 -1
- package/build/legacy/useIsFetching.cjs +0 -54
- package/build/legacy/useIsFetching.cjs.map +0 -1
- package/build/legacy/useIsFetching.d.cts +0 -2
- package/build/legacy/useIsFetching.d.ts +0 -2
- package/build/legacy/useIsFetching.js +0 -29
- package/build/legacy/useIsFetching.js.map +0 -1
- package/build/legacy/useMutation.cjs +0 -79
- package/build/legacy/useMutation.cjs.map +0 -1
- package/build/legacy/useMutation.d.cts +0 -3
- package/build/legacy/useMutation.d.ts +0 -3
- package/build/legacy/useMutation.js +0 -64
- package/build/legacy/useMutation.js.map +0 -1
- package/build/legacy/useMutationState.cjs +0 -82
- package/build/legacy/useMutationState.cjs.map +0 -1
- package/build/legacy/useMutationState.d.cts +0 -4
- package/build/legacy/useMutationState.d.ts +0 -4
- package/build/legacy/useMutationState.js +0 -63
- package/build/legacy/useMutationState.js.map +0 -1
- package/build/legacy/useQueries.cjs +0 -115
- package/build/legacy/useQueries.cjs.map +0 -1
- package/build/legacy/useQueries.d.cts +0 -3
- package/build/legacy/useQueries.d.ts +0 -3
- package/build/legacy/useQueries.js +0 -99
- package/build/legacy/useQueries.js.map +0 -1
- package/build/legacy/useQuery.cjs +0 -35
- package/build/legacy/useQuery.cjs.map +0 -1
- package/build/legacy/useQuery.d.cts +0 -6
- package/build/legacy/useQuery.d.ts +0 -6
- package/build/legacy/useQuery.js +0 -10
- package/build/legacy/useQuery.js.map +0 -1
- package/build/legacy/useQueryClient.cjs +0 -47
- package/build/legacy/useQueryClient.cjs.map +0 -1
- package/build/legacy/useQueryClient.d.cts +0 -1
- package/build/legacy/useQueryClient.d.ts +0 -1
- package/build/legacy/useQueryClient.js +0 -22
- package/build/legacy/useQueryClient.js.map +0 -1
- package/build/legacy/utils.cjs +0 -100
- package/build/legacy/utils.cjs.map +0 -1
- package/build/legacy/utils.d.cts +0 -5
- package/build/legacy/utils.d.ts +0 -5
- package/build/legacy/utils.js +0 -71
- package/build/legacy/utils.js.map +0 -1
- package/build/legacy/vueQueryPlugin.cjs +0 -105
- package/build/legacy/vueQueryPlugin.cjs.map +0 -1
- package/build/legacy/vueQueryPlugin.d.cts +0 -2
- package/build/legacy/vueQueryPlugin.d.ts +0 -2
- package/build/legacy/vueQueryPlugin.js +0 -80
- package/build/legacy/vueQueryPlugin.js.map +0 -1
- package/build/modern/_tsup-dts-rollup.d.cts +0 -855
- package/build/modern/_tsup-dts-rollup.d.ts +0 -855
- package/build/modern/devtools/devtools.cjs +0 -256
- package/build/modern/devtools/devtools.cjs.map +0 -1
- package/build/modern/devtools/devtools.d.cts +0 -1
- package/build/modern/devtools/devtools.d.ts +0 -1
- package/build/modern/devtools/devtools.js +0 -236
- package/build/modern/devtools/devtools.js.map +0 -1
- package/build/modern/devtools/utils.cjs +0 -105
- package/build/modern/devtools/utils.cjs.map +0 -1
- package/build/modern/devtools/utils.d.cts +0 -5
- package/build/modern/devtools/utils.d.ts +0 -5
- package/build/modern/devtools/utils.js +0 -76
- package/build/modern/devtools/utils.js.map +0 -1
- package/build/modern/index.cjs +0 -75
- package/build/modern/index.cjs.map +0 -1
- package/build/modern/index.d.cts +0 -169
- package/build/modern/index.d.ts +0 -169
- package/build/modern/index.js +0 -34
- package/build/modern/index.js.map +0 -1
- package/build/modern/infiniteQueryOptions.cjs +0 -33
- package/build/modern/infiniteQueryOptions.cjs.map +0 -1
- package/build/modern/infiniteQueryOptions.d.cts +0 -3
- package/build/modern/infiniteQueryOptions.d.ts +0 -3
- package/build/modern/infiniteQueryOptions.js +0 -8
- package/build/modern/infiniteQueryOptions.js.map +0 -1
- package/build/modern/mutationCache.cjs +0 -40
- package/build/modern/mutationCache.cjs.map +0 -1
- package/build/modern/mutationCache.d.cts +0 -1
- package/build/modern/mutationCache.d.ts +0 -1
- package/build/modern/mutationCache.js +0 -15
- package/build/modern/mutationCache.js.map +0 -1
- package/build/modern/queryCache.cjs +0 -40
- package/build/modern/queryCache.cjs.map +0 -1
- package/build/modern/queryCache.d.cts +0 -1
- package/build/modern/queryCache.d.ts +0 -1
- package/build/modern/queryCache.js +0 -15
- package/build/modern/queryCache.js.map +0 -1
- package/build/modern/queryClient.cjs +0 -141
- package/build/modern/queryClient.cjs.map +0 -1
- package/build/modern/queryClient.d.cts +0 -1
- package/build/modern/queryClient.d.ts +0 -1
- package/build/modern/queryClient.js +0 -116
- package/build/modern/queryClient.js.map +0 -1
- package/build/modern/queryOptions.cjs +0 -33
- package/build/modern/queryOptions.cjs.map +0 -1
- package/build/modern/queryOptions.d.cts +0 -1
- package/build/modern/queryOptions.d.ts +0 -1
- package/build/modern/queryOptions.js +0 -8
- package/build/modern/queryOptions.js.map +0 -1
- package/build/modern/types.cjs +0 -19
- package/build/modern/types.cjs.map +0 -1
- package/build/modern/types.d.cts +0 -9
- package/build/modern/types.d.ts +0 -9
- package/build/modern/types.js +0 -1
- package/build/modern/types.js.map +0 -1
- package/build/modern/useBaseQuery.cjs +0 -142
- package/build/modern/useBaseQuery.cjs.map +0 -1
- package/build/modern/useBaseQuery.d.cts +0 -2
- package/build/modern/useBaseQuery.d.ts +0 -2
- package/build/modern/useBaseQuery.js +0 -127
- package/build/modern/useBaseQuery.js.map +0 -1
- package/build/modern/useInfiniteQuery.cjs +0 -39
- package/build/modern/useInfiniteQuery.cjs.map +0 -1
- package/build/modern/useInfiniteQuery.d.cts +0 -3
- package/build/modern/useInfiniteQuery.d.ts +0 -3
- package/build/modern/useInfiniteQuery.js +0 -14
- package/build/modern/useInfiniteQuery.js.map +0 -1
- package/build/modern/useIsFetching.cjs +0 -54
- package/build/modern/useIsFetching.cjs.map +0 -1
- package/build/modern/useIsFetching.d.cts +0 -2
- package/build/modern/useIsFetching.d.ts +0 -2
- package/build/modern/useIsFetching.js +0 -29
- package/build/modern/useIsFetching.js.map +0 -1
- package/build/modern/useMutation.cjs +0 -79
- package/build/modern/useMutation.cjs.map +0 -1
- package/build/modern/useMutation.d.cts +0 -3
- package/build/modern/useMutation.d.ts +0 -3
- package/build/modern/useMutation.js +0 -64
- package/build/modern/useMutation.js.map +0 -1
- package/build/modern/useMutationState.cjs +0 -82
- package/build/modern/useMutationState.cjs.map +0 -1
- package/build/modern/useMutationState.d.cts +0 -4
- package/build/modern/useMutationState.d.ts +0 -4
- package/build/modern/useMutationState.js +0 -63
- package/build/modern/useMutationState.js.map +0 -1
- package/build/modern/useQueries.cjs +0 -114
- package/build/modern/useQueries.cjs.map +0 -1
- package/build/modern/useQueries.d.cts +0 -3
- package/build/modern/useQueries.d.ts +0 -3
- package/build/modern/useQueries.js +0 -98
- package/build/modern/useQueries.js.map +0 -1
- package/build/modern/useQuery.cjs +0 -35
- package/build/modern/useQuery.cjs.map +0 -1
- package/build/modern/useQuery.d.cts +0 -6
- package/build/modern/useQuery.d.ts +0 -6
- package/build/modern/useQuery.js +0 -10
- package/build/modern/useQuery.js.map +0 -1
- package/build/modern/useQueryClient.cjs +0 -47
- package/build/modern/useQueryClient.cjs.map +0 -1
- package/build/modern/useQueryClient.d.cts +0 -1
- package/build/modern/useQueryClient.d.ts +0 -1
- package/build/modern/useQueryClient.js +0 -22
- package/build/modern/useQueryClient.js.map +0 -1
- package/build/modern/utils.cjs +0 -100
- package/build/modern/utils.cjs.map +0 -1
- package/build/modern/utils.d.cts +0 -5
- package/build/modern/utils.d.ts +0 -5
- package/build/modern/utils.js +0 -71
- package/build/modern/utils.js.map +0 -1
- package/build/modern/vueQueryPlugin.cjs +0 -104
- package/build/modern/vueQueryPlugin.cjs.map +0 -1
- package/build/modern/vueQueryPlugin.d.cts +0 -2
- package/build/modern/vueQueryPlugin.d.ts +0 -2
- package/build/modern/vueQueryPlugin.js +0 -79
- package/build/modern/vueQueryPlugin.js.map +0 -1
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
// src/devtools/utils.ts
|
|
2
|
-
function getQueryState(query) {
|
|
3
|
-
if (query.state.fetchStatus === "fetching") {
|
|
4
|
-
return 0 /* Fetching */;
|
|
5
|
-
}
|
|
6
|
-
if (query.state.fetchStatus === "paused") {
|
|
7
|
-
return 4 /* Paused */;
|
|
8
|
-
}
|
|
9
|
-
if (!query.getObserversCount()) {
|
|
10
|
-
return 3 /* Inactive */;
|
|
11
|
-
}
|
|
12
|
-
if (query.isStale()) {
|
|
13
|
-
return 2 /* Stale */;
|
|
14
|
-
}
|
|
15
|
-
return 1 /* Fresh */;
|
|
16
|
-
}
|
|
17
|
-
function getQueryStateLabel(query) {
|
|
18
|
-
const queryState = getQueryState(query);
|
|
19
|
-
if (queryState === 0 /* Fetching */) {
|
|
20
|
-
return "fetching";
|
|
21
|
-
}
|
|
22
|
-
if (queryState === 4 /* Paused */) {
|
|
23
|
-
return "paused";
|
|
24
|
-
}
|
|
25
|
-
if (queryState === 2 /* Stale */) {
|
|
26
|
-
return "stale";
|
|
27
|
-
}
|
|
28
|
-
if (queryState === 3 /* Inactive */) {
|
|
29
|
-
return "inactive";
|
|
30
|
-
}
|
|
31
|
-
return "fresh";
|
|
32
|
-
}
|
|
33
|
-
function getQueryStatusFg(query) {
|
|
34
|
-
const queryState = getQueryState(query);
|
|
35
|
-
if (queryState === 2 /* Stale */) {
|
|
36
|
-
return 0;
|
|
37
|
-
}
|
|
38
|
-
return 16777215;
|
|
39
|
-
}
|
|
40
|
-
function getQueryStatusBg(query) {
|
|
41
|
-
const queryState = getQueryState(query);
|
|
42
|
-
if (queryState === 0 /* Fetching */) {
|
|
43
|
-
return 27647;
|
|
44
|
-
}
|
|
45
|
-
if (queryState === 4 /* Paused */) {
|
|
46
|
-
return 9193963;
|
|
47
|
-
}
|
|
48
|
-
if (queryState === 2 /* Stale */) {
|
|
49
|
-
return 16757248;
|
|
50
|
-
}
|
|
51
|
-
if (queryState === 3 /* Inactive */) {
|
|
52
|
-
return 4148832;
|
|
53
|
-
}
|
|
54
|
-
return 33575;
|
|
55
|
-
}
|
|
56
|
-
var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
|
|
57
|
-
var dateSort = (a, b) => a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1;
|
|
58
|
-
var statusAndDateSort = (a, b) => {
|
|
59
|
-
if (getQueryState(a) === getQueryState(b)) {
|
|
60
|
-
return dateSort(a, b);
|
|
61
|
-
}
|
|
62
|
-
return getQueryState(a) > getQueryState(b) ? 1 : -1;
|
|
63
|
-
};
|
|
64
|
-
var sortFns = {
|
|
65
|
-
"Status > Last Updated": statusAndDateSort,
|
|
66
|
-
"Query Hash": queryHashSort,
|
|
67
|
-
"Last Updated": dateSort
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
getQueryState,
|
|
71
|
-
getQueryStateLabel,
|
|
72
|
-
getQueryStatusBg,
|
|
73
|
-
getQueryStatusFg,
|
|
74
|
-
sortFns
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/devtools/utils.ts"],"sourcesContent":["import type { Query } from '@tanstack/query-core'\n\ntype SortFn = (a: Query, b: Query) => number\n\nenum QueryState {\n Fetching = 0,\n Fresh,\n Stale,\n Inactive,\n Paused,\n}\n\nexport function getQueryState(query: Query): QueryState {\n if (query.state.fetchStatus === 'fetching') {\n return QueryState.Fetching\n }\n if (query.state.fetchStatus === 'paused') {\n return QueryState.Paused\n }\n if (!query.getObserversCount()) {\n return QueryState.Inactive\n }\n if (query.isStale()) {\n return QueryState.Stale\n }\n\n return QueryState.Fresh\n}\n\nexport function getQueryStateLabel(query: Query): string {\n const queryState = getQueryState(query)\n\n if (queryState === QueryState.Fetching) {\n return 'fetching'\n }\n if (queryState === QueryState.Paused) {\n return 'paused'\n }\n if (queryState === QueryState.Stale) {\n return 'stale'\n }\n if (queryState === QueryState.Inactive) {\n return 'inactive'\n }\n\n return 'fresh'\n}\n\nexport function getQueryStatusFg(query: Query): number {\n const queryState = getQueryState(query)\n\n if (queryState === QueryState.Stale) {\n return 0x000000\n }\n\n return 0xffffff\n}\n\nexport function getQueryStatusBg(query: Query): number {\n const queryState = getQueryState(query)\n\n if (queryState === QueryState.Fetching) {\n return 0x006bff\n }\n if (queryState === QueryState.Paused) {\n return 0x8c49eb\n }\n if (queryState === QueryState.Stale) {\n return 0xffb200\n }\n if (queryState === QueryState.Inactive) {\n return 0x3f4e60\n }\n\n return 0x008327\n}\n\nconst queryHashSort: SortFn = (a, b) => a.queryHash.localeCompare(b.queryHash)\n\nconst dateSort: SortFn = (a, b) =>\n a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1\n\nconst statusAndDateSort: SortFn = (a, b) => {\n if (getQueryState(a) === getQueryState(b)) {\n return dateSort(a, b)\n }\n\n return getQueryState(a) > getQueryState(b) ? 1 : -1\n}\n\nexport const sortFns: Record<string, SortFn> = {\n 'Status > Last Updated': statusAndDateSort,\n 'Query Hash': queryHashSort,\n 'Last Updated': dateSort,\n}\n"],"mappings":";AAYO,SAAS,cAAc,OAA0B;AACtD,MAAI,MAAM,MAAM,gBAAgB,YAAY;AAC1C,WAAO;AAAA,EACT;AACA,MAAI,MAAM,MAAM,gBAAgB,UAAU;AACxC,WAAO;AAAA,EACT;AACA,MAAI,CAAC,MAAM,kBAAkB,GAAG;AAC9B,WAAO;AAAA,EACT;AACA,MAAI,MAAM,QAAQ,GAAG;AACnB,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAEO,SAAS,mBAAmB,OAAsB;AACvD,QAAM,aAAa,cAAc,KAAK;AAEtC,MAAI,eAAe,kBAAqB;AACtC,WAAO;AAAA,EACT;AACA,MAAI,eAAe,gBAAmB;AACpC,WAAO;AAAA,EACT;AACA,MAAI,eAAe,eAAkB;AACnC,WAAO;AAAA,EACT;AACA,MAAI,eAAe,kBAAqB;AACtC,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAEO,SAAS,iBAAiB,OAAsB;AACrD,QAAM,aAAa,cAAc,KAAK;AAEtC,MAAI,eAAe,eAAkB;AACnC,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAEO,SAAS,iBAAiB,OAAsB;AACrD,QAAM,aAAa,cAAc,KAAK;AAEtC,MAAI,eAAe,kBAAqB;AACtC,WAAO;AAAA,EACT;AACA,MAAI,eAAe,gBAAmB;AACpC,WAAO;AAAA,EACT;AACA,MAAI,eAAe,eAAkB;AACnC,WAAO;AAAA,EACT;AACA,MAAI,eAAe,kBAAqB;AACtC,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAEA,IAAM,gBAAwB,CAAC,GAAG,MAAM,EAAE,UAAU,cAAc,EAAE,SAAS;AAE7E,IAAM,WAAmB,CAAC,GAAG,MAC3B,EAAE,MAAM,gBAAgB,EAAE,MAAM,gBAAgB,IAAI;AAEtD,IAAM,oBAA4B,CAAC,GAAG,MAAM;AAC1C,MAAI,cAAc,CAAC,MAAM,cAAc,CAAC,GAAG;AACzC,WAAO,SAAS,GAAG,CAAC;AAAA,EACtB;AAEA,SAAO,cAAc,CAAC,IAAI,cAAc,CAAC,IAAI,IAAI;AACnD;AAEO,IAAM,UAAkC;AAAA,EAC7C,yBAAyB;AAAA,EACzB,cAAc;AAAA,EACd,gBAAgB;AAClB;","names":[]}
|
package/build/legacy/index.cjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
MutationCache: () => import_mutationCache.MutationCache,
|
|
25
|
-
QueryCache: () => import_queryCache.QueryCache,
|
|
26
|
-
QueryClient: () => import_queryClient.QueryClient,
|
|
27
|
-
VUE_QUERY_CLIENT: () => import_utils.VUE_QUERY_CLIENT,
|
|
28
|
-
VueQueryPlugin: () => import_vueQueryPlugin.VueQueryPlugin,
|
|
29
|
-
infiniteQueryOptions: () => import_infiniteQueryOptions.infiniteQueryOptions,
|
|
30
|
-
queryOptions: () => import_queryOptions.queryOptions,
|
|
31
|
-
useInfiniteQuery: () => import_useInfiniteQuery.useInfiniteQuery,
|
|
32
|
-
useIsFetching: () => import_useIsFetching.useIsFetching,
|
|
33
|
-
useIsMutating: () => import_useMutationState.useIsMutating,
|
|
34
|
-
useMutation: () => import_useMutation.useMutation,
|
|
35
|
-
useMutationState: () => import_useMutationState.useMutationState,
|
|
36
|
-
useQueries: () => import_useQueries.useQueries,
|
|
37
|
-
useQuery: () => import_useQuery.useQuery,
|
|
38
|
-
useQueryClient: () => import_useQueryClient.useQueryClient
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(index_exports);
|
|
41
|
-
__reExport(index_exports, require("@tanstack/query-core"), module.exports);
|
|
42
|
-
var import_useQueryClient = require("./useQueryClient.cjs");
|
|
43
|
-
var import_vueQueryPlugin = require("./vueQueryPlugin.cjs");
|
|
44
|
-
var import_queryClient = require("./queryClient.cjs");
|
|
45
|
-
var import_queryCache = require("./queryCache.cjs");
|
|
46
|
-
var import_queryOptions = require("./queryOptions.cjs");
|
|
47
|
-
var import_infiniteQueryOptions = require("./infiniteQueryOptions.cjs");
|
|
48
|
-
var import_mutationCache = require("./mutationCache.cjs");
|
|
49
|
-
var import_useQuery = require("./useQuery.cjs");
|
|
50
|
-
var import_useQueries = require("./useQueries.cjs");
|
|
51
|
-
var import_useInfiniteQuery = require("./useInfiniteQuery.cjs");
|
|
52
|
-
var import_useMutation = require("./useMutation.cjs");
|
|
53
|
-
var import_useIsFetching = require("./useIsFetching.cjs");
|
|
54
|
-
var import_useMutationState = require("./useMutationState.cjs");
|
|
55
|
-
var import_utils = require("./utils.cjs");
|
|
56
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
-
0 && (module.exports = {
|
|
58
|
-
MutationCache,
|
|
59
|
-
QueryCache,
|
|
60
|
-
QueryClient,
|
|
61
|
-
VUE_QUERY_CLIENT,
|
|
62
|
-
VueQueryPlugin,
|
|
63
|
-
infiniteQueryOptions,
|
|
64
|
-
queryOptions,
|
|
65
|
-
useInfiniteQuery,
|
|
66
|
-
useIsFetching,
|
|
67
|
-
useIsMutating,
|
|
68
|
-
useMutation,
|
|
69
|
-
useMutationState,
|
|
70
|
-
useQueries,
|
|
71
|
-
useQuery,
|
|
72
|
-
useQueryClient,
|
|
73
|
-
...require("@tanstack/query-core")
|
|
74
|
-
});
|
|
75
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n UndefinedInitialQueryOptions,\n DefinedInitialQueryOptions,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,iCAAd;AAEA,4BAA+B;AAC/B,4BAA+B;AAE/B,yBAA4B;AAC5B,wBAA2B;AAC3B,0BAA6B;AAC7B,kCAAqC;AAKrC,2BAA8B;AAC9B,sBAAyB;AACzB,wBAA2B;AAC3B,8BAAiC;AACjC,yBAA4B;AAC5B,2BAA8B;AAC9B,8BAAgD;AAChD,mBAAiC;","names":[]}
|
package/build/legacy/index.d.cts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
export { useQueryClient } from './_tsup-dts-rollup.cjs';
|
|
2
|
-
export { VueQueryPlugin } from './_tsup-dts-rollup.cjs';
|
|
3
|
-
export { QueryClient } from './_tsup-dts-rollup.cjs';
|
|
4
|
-
export { QueryCache } from './_tsup-dts-rollup.cjs';
|
|
5
|
-
export { queryOptions } from './_tsup-dts-rollup.cjs';
|
|
6
|
-
export { infiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
7
|
-
export { DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.cjs';
|
|
8
|
-
export { UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.cjs';
|
|
9
|
-
export { MutationCache } from './_tsup-dts-rollup.cjs';
|
|
10
|
-
export { useQuery } from './_tsup-dts-rollup.cjs';
|
|
11
|
-
export { useQueries } from './_tsup-dts-rollup.cjs';
|
|
12
|
-
export { useInfiniteQuery } from './_tsup-dts-rollup.cjs';
|
|
13
|
-
export { useMutation } from './_tsup-dts-rollup.cjs';
|
|
14
|
-
export { useIsFetching } from './_tsup-dts-rollup.cjs';
|
|
15
|
-
export { useIsMutating } from './_tsup-dts-rollup.cjs';
|
|
16
|
-
export { useMutationState } from './_tsup-dts-rollup.cjs';
|
|
17
|
-
export { VUE_QUERY_CLIENT } from './_tsup-dts-rollup.cjs';
|
|
18
|
-
export { UseQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
19
|
-
export { UseQueryReturnType } from './_tsup-dts-rollup.cjs';
|
|
20
|
-
export { UseQueryDefinedReturnType } from './_tsup-dts-rollup.cjs';
|
|
21
|
-
export { UndefinedInitialQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
22
|
-
export { DefinedInitialQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
23
|
-
export { UseInfiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
24
|
-
export { UseInfiniteQueryReturnType } from './_tsup-dts-rollup.cjs';
|
|
25
|
-
export { UseMutationOptions } from './_tsup-dts-rollup.cjs';
|
|
26
|
-
export { UseMutationReturnType } from './_tsup-dts-rollup.cjs';
|
|
27
|
-
export { UseQueriesOptions } from './_tsup-dts-rollup.cjs';
|
|
28
|
-
export { UseQueriesResults } from './_tsup-dts-rollup.cjs';
|
|
29
|
-
export { MutationFilters } from './_tsup-dts-rollup.cjs';
|
|
30
|
-
export { MutationStateOptions } from './_tsup-dts-rollup.cjs';
|
|
31
|
-
export { QueryFilters } from './_tsup-dts-rollup.cjs';
|
|
32
|
-
export { VueQueryPluginOptions } from './_tsup-dts-rollup.cjs';
|
|
33
|
-
export { focusManager } from './_tsup-dts-rollup.cjs';
|
|
34
|
-
export { environmentManager } from './_tsup-dts-rollup.cjs';
|
|
35
|
-
export { defaultShouldDehydrateMutation } from './_tsup-dts-rollup.cjs';
|
|
36
|
-
export { defaultShouldDehydrateQuery } from './_tsup-dts-rollup.cjs';
|
|
37
|
-
export { dehydrate } from './_tsup-dts-rollup.cjs';
|
|
38
|
-
export { hydrate } from './_tsup-dts-rollup.cjs';
|
|
39
|
-
export { InfiniteQueryObserver } from './_tsup-dts-rollup.cjs';
|
|
40
|
-
export { MutationCacheNotifyEvent } from './_tsup-dts-rollup.cjs';
|
|
41
|
-
export { MutationObserver } from './_tsup-dts-rollup.cjs';
|
|
42
|
-
export { defaultScheduler } from './_tsup-dts-rollup.cjs';
|
|
43
|
-
export { notifyManager } from './_tsup-dts-rollup.cjs';
|
|
44
|
-
export { onlineManager } from './_tsup-dts-rollup.cjs';
|
|
45
|
-
export { QueriesObserver } from './_tsup-dts-rollup.cjs';
|
|
46
|
-
export { QueryCacheNotifyEvent } from './_tsup-dts-rollup.cjs';
|
|
47
|
-
export { QueryObserver } from './_tsup-dts-rollup.cjs';
|
|
48
|
-
export { CancelledError } from './_tsup-dts-rollup.cjs';
|
|
49
|
-
export { isCancelledError } from './_tsup-dts-rollup.cjs';
|
|
50
|
-
export { timeoutManager } from './_tsup-dts-rollup.cjs';
|
|
51
|
-
export { ManagedTimerId } from './_tsup-dts-rollup.cjs';
|
|
52
|
-
export { TimeoutCallback } from './_tsup-dts-rollup.cjs';
|
|
53
|
-
export { TimeoutProvider } from './_tsup-dts-rollup.cjs';
|
|
54
|
-
export { hashKey } from './_tsup-dts-rollup.cjs';
|
|
55
|
-
export { isServer } from './_tsup-dts-rollup.cjs';
|
|
56
|
-
export { keepPreviousData } from './_tsup-dts-rollup.cjs';
|
|
57
|
-
export { matchMutation } from './_tsup-dts-rollup.cjs';
|
|
58
|
-
export { matchQuery } from './_tsup-dts-rollup.cjs';
|
|
59
|
-
export { noop } from './_tsup-dts-rollup.cjs';
|
|
60
|
-
export { partialMatchKey } from './_tsup-dts-rollup.cjs';
|
|
61
|
-
export { replaceEqualDeep } from './_tsup-dts-rollup.cjs';
|
|
62
|
-
export { shouldThrowError } from './_tsup-dts-rollup.cjs';
|
|
63
|
-
export { skipToken } from './_tsup-dts-rollup.cjs';
|
|
64
|
-
export { SkipToken } from './_tsup-dts-rollup.cjs';
|
|
65
|
-
export { Updater } from './_tsup-dts-rollup.cjs';
|
|
66
|
-
export { experimental_streamedQuery } from './_tsup-dts-rollup.cjs';
|
|
67
|
-
export { DehydratedState } from './_tsup-dts-rollup.cjs';
|
|
68
|
-
export { DehydrateOptions } from './_tsup-dts-rollup.cjs';
|
|
69
|
-
export { HydrateOptions } from './_tsup-dts-rollup.cjs';
|
|
70
|
-
export { Mutation } from './_tsup-dts-rollup.cjs';
|
|
71
|
-
export { MutationState } from './_tsup-dts-rollup.cjs';
|
|
72
|
-
export { QueriesObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
73
|
-
export { Query } from './_tsup-dts-rollup.cjs';
|
|
74
|
-
export { QueryState } from './_tsup-dts-rollup.cjs';
|
|
75
|
-
export { NonUndefinedGuard } from './_tsup-dts-rollup.cjs';
|
|
76
|
-
export { DistributiveOmit } from './_tsup-dts-rollup.cjs';
|
|
77
|
-
export { OmitKeyof } from './_tsup-dts-rollup.cjs';
|
|
78
|
-
export { Override } from './_tsup-dts-rollup.cjs';
|
|
79
|
-
export { NoInfer } from './_tsup-dts-rollup.cjs';
|
|
80
|
-
export { Register } from './_tsup-dts-rollup.cjs';
|
|
81
|
-
export { DefaultError } from './_tsup-dts-rollup.cjs';
|
|
82
|
-
export { QueryKey } from './_tsup-dts-rollup.cjs';
|
|
83
|
-
export { dataTagSymbol } from './_tsup-dts-rollup.cjs';
|
|
84
|
-
export { dataTagErrorSymbol } from './_tsup-dts-rollup.cjs';
|
|
85
|
-
export { unsetMarker } from './_tsup-dts-rollup.cjs';
|
|
86
|
-
export { UnsetMarker } from './_tsup-dts-rollup.cjs';
|
|
87
|
-
export { AnyDataTag } from './_tsup-dts-rollup.cjs';
|
|
88
|
-
export { DataTag } from './_tsup-dts-rollup.cjs';
|
|
89
|
-
export { InferDataFromTag } from './_tsup-dts-rollup.cjs';
|
|
90
|
-
export { InferErrorFromTag } from './_tsup-dts-rollup.cjs';
|
|
91
|
-
export { QueryFunction } from './_tsup-dts-rollup.cjs';
|
|
92
|
-
export { StaleTime } from './_tsup-dts-rollup.cjs';
|
|
93
|
-
export { StaleTimeFunction } from './_tsup-dts-rollup.cjs';
|
|
94
|
-
export { Enabled } from './_tsup-dts-rollup.cjs';
|
|
95
|
-
export { QueryPersister } from './_tsup-dts-rollup.cjs';
|
|
96
|
-
export { QueryFunctionContext } from './_tsup-dts-rollup.cjs';
|
|
97
|
-
export { InitialDataFunction } from './_tsup-dts-rollup.cjs';
|
|
98
|
-
export { PlaceholderDataFunction } from './_tsup-dts-rollup.cjs';
|
|
99
|
-
export { QueriesPlaceholderDataFunction } from './_tsup-dts-rollup.cjs';
|
|
100
|
-
export { QueryKeyHashFunction } from './_tsup-dts-rollup.cjs';
|
|
101
|
-
export { GetPreviousPageParamFunction } from './_tsup-dts-rollup.cjs';
|
|
102
|
-
export { GetNextPageParamFunction } from './_tsup-dts-rollup.cjs';
|
|
103
|
-
export { InfiniteData } from './_tsup-dts-rollup.cjs';
|
|
104
|
-
export { QueryMeta } from './_tsup-dts-rollup.cjs';
|
|
105
|
-
export { NetworkMode } from './_tsup-dts-rollup.cjs';
|
|
106
|
-
export { NotifyOnChangeProps } from './_tsup-dts-rollup.cjs';
|
|
107
|
-
export { QueryOptions } from './_tsup-dts-rollup.cjs';
|
|
108
|
-
export { InitialPageParam } from './_tsup-dts-rollup.cjs';
|
|
109
|
-
export { InfiniteQueryPageParamsOptions } from './_tsup-dts-rollup.cjs';
|
|
110
|
-
export { ThrowOnError } from './_tsup-dts-rollup.cjs';
|
|
111
|
-
export { QueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
112
|
-
export { WithRequired } from './_tsup-dts-rollup.cjs';
|
|
113
|
-
export { DefaultedQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
114
|
-
export { InfiniteQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
115
|
-
export { DefaultedInfiniteQueryObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
116
|
-
export { FetchQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
117
|
-
export { EnsureQueryDataOptions } from './_tsup-dts-rollup.cjs';
|
|
118
|
-
export { EnsureInfiniteQueryDataOptions } from './_tsup-dts-rollup.cjs';
|
|
119
|
-
export { FetchInfiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
120
|
-
export { ResultOptions } from './_tsup-dts-rollup.cjs';
|
|
121
|
-
export { RefetchOptions } from './_tsup-dts-rollup.cjs';
|
|
122
|
-
export { InvalidateQueryFilters } from './_tsup-dts-rollup.cjs';
|
|
123
|
-
export { RefetchQueryFilters } from './_tsup-dts-rollup.cjs';
|
|
124
|
-
export { InvalidateOptions } from './_tsup-dts-rollup.cjs';
|
|
125
|
-
export { ResetOptions } from './_tsup-dts-rollup.cjs';
|
|
126
|
-
export { FetchNextPageOptions } from './_tsup-dts-rollup.cjs';
|
|
127
|
-
export { FetchPreviousPageOptions } from './_tsup-dts-rollup.cjs';
|
|
128
|
-
export { QueryStatus } from './_tsup-dts-rollup.cjs';
|
|
129
|
-
export { FetchStatus } from './_tsup-dts-rollup.cjs';
|
|
130
|
-
export { QueryObserverBaseResult } from './_tsup-dts-rollup.cjs';
|
|
131
|
-
export { QueryObserverPendingResult } from './_tsup-dts-rollup.cjs';
|
|
132
|
-
export { QueryObserverLoadingResult } from './_tsup-dts-rollup.cjs';
|
|
133
|
-
export { QueryObserverLoadingErrorResult } from './_tsup-dts-rollup.cjs';
|
|
134
|
-
export { QueryObserverRefetchErrorResult } from './_tsup-dts-rollup.cjs';
|
|
135
|
-
export { QueryObserverSuccessResult } from './_tsup-dts-rollup.cjs';
|
|
136
|
-
export { QueryObserverPlaceholderResult } from './_tsup-dts-rollup.cjs';
|
|
137
|
-
export { DefinedQueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
138
|
-
export { QueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
139
|
-
export { InfiniteQueryObserverBaseResult } from './_tsup-dts-rollup.cjs';
|
|
140
|
-
export { InfiniteQueryObserverPendingResult } from './_tsup-dts-rollup.cjs';
|
|
141
|
-
export { InfiniteQueryObserverLoadingResult } from './_tsup-dts-rollup.cjs';
|
|
142
|
-
export { InfiniteQueryObserverLoadingErrorResult } from './_tsup-dts-rollup.cjs';
|
|
143
|
-
export { InfiniteQueryObserverRefetchErrorResult } from './_tsup-dts-rollup.cjs';
|
|
144
|
-
export { InfiniteQueryObserverSuccessResult } from './_tsup-dts-rollup.cjs';
|
|
145
|
-
export { InfiniteQueryObserverPlaceholderResult } from './_tsup-dts-rollup.cjs';
|
|
146
|
-
export { DefinedInfiniteQueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
147
|
-
export { InfiniteQueryObserverResult } from './_tsup-dts-rollup.cjs';
|
|
148
|
-
export { MutationKey } from './_tsup-dts-rollup.cjs';
|
|
149
|
-
export { MutationStatus } from './_tsup-dts-rollup.cjs';
|
|
150
|
-
export { MutationScope } from './_tsup-dts-rollup.cjs';
|
|
151
|
-
export { MutationMeta } from './_tsup-dts-rollup.cjs';
|
|
152
|
-
export { MutationFunctionContext } from './_tsup-dts-rollup.cjs';
|
|
153
|
-
export { MutationFunction } from './_tsup-dts-rollup.cjs';
|
|
154
|
-
export { MutationOptions } from './_tsup-dts-rollup.cjs';
|
|
155
|
-
export { MutationObserverOptions } from './_tsup-dts-rollup.cjs';
|
|
156
|
-
export { MutateOptions } from './_tsup-dts-rollup.cjs';
|
|
157
|
-
export { MutateFunction } from './_tsup-dts-rollup.cjs';
|
|
158
|
-
export { MutationObserverBaseResult } from './_tsup-dts-rollup.cjs';
|
|
159
|
-
export { MutationObserverIdleResult } from './_tsup-dts-rollup.cjs';
|
|
160
|
-
export { MutationObserverLoadingResult } from './_tsup-dts-rollup.cjs';
|
|
161
|
-
export { MutationObserverErrorResult } from './_tsup-dts-rollup.cjs';
|
|
162
|
-
export { MutationObserverSuccessResult } from './_tsup-dts-rollup.cjs';
|
|
163
|
-
export { MutationObserverResult } from './_tsup-dts-rollup.cjs';
|
|
164
|
-
export { QueryClientConfig } from './_tsup-dts-rollup.cjs';
|
|
165
|
-
export { DefaultOptions } from './_tsup-dts-rollup.cjs';
|
|
166
|
-
export { CancelOptions } from './_tsup-dts-rollup.cjs';
|
|
167
|
-
export { SetDataOptions } from './_tsup-dts-rollup.cjs';
|
|
168
|
-
export { NotifyEventType } from './_tsup-dts-rollup.cjs';
|
|
169
|
-
export { NotifyEvent } from './_tsup-dts-rollup.cjs';
|
package/build/legacy/index.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
export { useQueryClient } from './_tsup-dts-rollup.js';
|
|
2
|
-
export { VueQueryPlugin } from './_tsup-dts-rollup.js';
|
|
3
|
-
export { QueryClient } from './_tsup-dts-rollup.js';
|
|
4
|
-
export { QueryCache } from './_tsup-dts-rollup.js';
|
|
5
|
-
export { queryOptions } from './_tsup-dts-rollup.js';
|
|
6
|
-
export { infiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
7
|
-
export { DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
8
|
-
export { UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
9
|
-
export { MutationCache } from './_tsup-dts-rollup.js';
|
|
10
|
-
export { useQuery } from './_tsup-dts-rollup.js';
|
|
11
|
-
export { useQueries } from './_tsup-dts-rollup.js';
|
|
12
|
-
export { useInfiniteQuery } from './_tsup-dts-rollup.js';
|
|
13
|
-
export { useMutation } from './_tsup-dts-rollup.js';
|
|
14
|
-
export { useIsFetching } from './_tsup-dts-rollup.js';
|
|
15
|
-
export { useIsMutating } from './_tsup-dts-rollup.js';
|
|
16
|
-
export { useMutationState } from './_tsup-dts-rollup.js';
|
|
17
|
-
export { VUE_QUERY_CLIENT } from './_tsup-dts-rollup.js';
|
|
18
|
-
export { UseQueryOptions } from './_tsup-dts-rollup.js';
|
|
19
|
-
export { UseQueryReturnType } from './_tsup-dts-rollup.js';
|
|
20
|
-
export { UseQueryDefinedReturnType } from './_tsup-dts-rollup.js';
|
|
21
|
-
export { UndefinedInitialQueryOptions } from './_tsup-dts-rollup.js';
|
|
22
|
-
export { DefinedInitialQueryOptions } from './_tsup-dts-rollup.js';
|
|
23
|
-
export { UseInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
24
|
-
export { UseInfiniteQueryReturnType } from './_tsup-dts-rollup.js';
|
|
25
|
-
export { UseMutationOptions } from './_tsup-dts-rollup.js';
|
|
26
|
-
export { UseMutationReturnType } from './_tsup-dts-rollup.js';
|
|
27
|
-
export { UseQueriesOptions } from './_tsup-dts-rollup.js';
|
|
28
|
-
export { UseQueriesResults } from './_tsup-dts-rollup.js';
|
|
29
|
-
export { MutationFilters } from './_tsup-dts-rollup.js';
|
|
30
|
-
export { MutationStateOptions } from './_tsup-dts-rollup.js';
|
|
31
|
-
export { QueryFilters } from './_tsup-dts-rollup.js';
|
|
32
|
-
export { VueQueryPluginOptions } from './_tsup-dts-rollup.js';
|
|
33
|
-
export { focusManager } from './_tsup-dts-rollup.js';
|
|
34
|
-
export { environmentManager } from './_tsup-dts-rollup.js';
|
|
35
|
-
export { defaultShouldDehydrateMutation } from './_tsup-dts-rollup.js';
|
|
36
|
-
export { defaultShouldDehydrateQuery } from './_tsup-dts-rollup.js';
|
|
37
|
-
export { dehydrate } from './_tsup-dts-rollup.js';
|
|
38
|
-
export { hydrate } from './_tsup-dts-rollup.js';
|
|
39
|
-
export { InfiniteQueryObserver } from './_tsup-dts-rollup.js';
|
|
40
|
-
export { MutationCacheNotifyEvent } from './_tsup-dts-rollup.js';
|
|
41
|
-
export { MutationObserver } from './_tsup-dts-rollup.js';
|
|
42
|
-
export { defaultScheduler } from './_tsup-dts-rollup.js';
|
|
43
|
-
export { notifyManager } from './_tsup-dts-rollup.js';
|
|
44
|
-
export { onlineManager } from './_tsup-dts-rollup.js';
|
|
45
|
-
export { QueriesObserver } from './_tsup-dts-rollup.js';
|
|
46
|
-
export { QueryCacheNotifyEvent } from './_tsup-dts-rollup.js';
|
|
47
|
-
export { QueryObserver } from './_tsup-dts-rollup.js';
|
|
48
|
-
export { CancelledError } from './_tsup-dts-rollup.js';
|
|
49
|
-
export { isCancelledError } from './_tsup-dts-rollup.js';
|
|
50
|
-
export { timeoutManager } from './_tsup-dts-rollup.js';
|
|
51
|
-
export { ManagedTimerId } from './_tsup-dts-rollup.js';
|
|
52
|
-
export { TimeoutCallback } from './_tsup-dts-rollup.js';
|
|
53
|
-
export { TimeoutProvider } from './_tsup-dts-rollup.js';
|
|
54
|
-
export { hashKey } from './_tsup-dts-rollup.js';
|
|
55
|
-
export { isServer } from './_tsup-dts-rollup.js';
|
|
56
|
-
export { keepPreviousData } from './_tsup-dts-rollup.js';
|
|
57
|
-
export { matchMutation } from './_tsup-dts-rollup.js';
|
|
58
|
-
export { matchQuery } from './_tsup-dts-rollup.js';
|
|
59
|
-
export { noop } from './_tsup-dts-rollup.js';
|
|
60
|
-
export { partialMatchKey } from './_tsup-dts-rollup.js';
|
|
61
|
-
export { replaceEqualDeep } from './_tsup-dts-rollup.js';
|
|
62
|
-
export { shouldThrowError } from './_tsup-dts-rollup.js';
|
|
63
|
-
export { skipToken } from './_tsup-dts-rollup.js';
|
|
64
|
-
export { SkipToken } from './_tsup-dts-rollup.js';
|
|
65
|
-
export { Updater } from './_tsup-dts-rollup.js';
|
|
66
|
-
export { experimental_streamedQuery } from './_tsup-dts-rollup.js';
|
|
67
|
-
export { DehydratedState } from './_tsup-dts-rollup.js';
|
|
68
|
-
export { DehydrateOptions } from './_tsup-dts-rollup.js';
|
|
69
|
-
export { HydrateOptions } from './_tsup-dts-rollup.js';
|
|
70
|
-
export { Mutation } from './_tsup-dts-rollup.js';
|
|
71
|
-
export { MutationState } from './_tsup-dts-rollup.js';
|
|
72
|
-
export { QueriesObserverOptions } from './_tsup-dts-rollup.js';
|
|
73
|
-
export { Query } from './_tsup-dts-rollup.js';
|
|
74
|
-
export { QueryState } from './_tsup-dts-rollup.js';
|
|
75
|
-
export { NonUndefinedGuard } from './_tsup-dts-rollup.js';
|
|
76
|
-
export { DistributiveOmit } from './_tsup-dts-rollup.js';
|
|
77
|
-
export { OmitKeyof } from './_tsup-dts-rollup.js';
|
|
78
|
-
export { Override } from './_tsup-dts-rollup.js';
|
|
79
|
-
export { NoInfer } from './_tsup-dts-rollup.js';
|
|
80
|
-
export { Register } from './_tsup-dts-rollup.js';
|
|
81
|
-
export { DefaultError } from './_tsup-dts-rollup.js';
|
|
82
|
-
export { QueryKey } from './_tsup-dts-rollup.js';
|
|
83
|
-
export { dataTagSymbol } from './_tsup-dts-rollup.js';
|
|
84
|
-
export { dataTagErrorSymbol } from './_tsup-dts-rollup.js';
|
|
85
|
-
export { unsetMarker } from './_tsup-dts-rollup.js';
|
|
86
|
-
export { UnsetMarker } from './_tsup-dts-rollup.js';
|
|
87
|
-
export { AnyDataTag } from './_tsup-dts-rollup.js';
|
|
88
|
-
export { DataTag } from './_tsup-dts-rollup.js';
|
|
89
|
-
export { InferDataFromTag } from './_tsup-dts-rollup.js';
|
|
90
|
-
export { InferErrorFromTag } from './_tsup-dts-rollup.js';
|
|
91
|
-
export { QueryFunction } from './_tsup-dts-rollup.js';
|
|
92
|
-
export { StaleTime } from './_tsup-dts-rollup.js';
|
|
93
|
-
export { StaleTimeFunction } from './_tsup-dts-rollup.js';
|
|
94
|
-
export { Enabled } from './_tsup-dts-rollup.js';
|
|
95
|
-
export { QueryPersister } from './_tsup-dts-rollup.js';
|
|
96
|
-
export { QueryFunctionContext } from './_tsup-dts-rollup.js';
|
|
97
|
-
export { InitialDataFunction } from './_tsup-dts-rollup.js';
|
|
98
|
-
export { PlaceholderDataFunction } from './_tsup-dts-rollup.js';
|
|
99
|
-
export { QueriesPlaceholderDataFunction } from './_tsup-dts-rollup.js';
|
|
100
|
-
export { QueryKeyHashFunction } from './_tsup-dts-rollup.js';
|
|
101
|
-
export { GetPreviousPageParamFunction } from './_tsup-dts-rollup.js';
|
|
102
|
-
export { GetNextPageParamFunction } from './_tsup-dts-rollup.js';
|
|
103
|
-
export { InfiniteData } from './_tsup-dts-rollup.js';
|
|
104
|
-
export { QueryMeta } from './_tsup-dts-rollup.js';
|
|
105
|
-
export { NetworkMode } from './_tsup-dts-rollup.js';
|
|
106
|
-
export { NotifyOnChangeProps } from './_tsup-dts-rollup.js';
|
|
107
|
-
export { QueryOptions } from './_tsup-dts-rollup.js';
|
|
108
|
-
export { InitialPageParam } from './_tsup-dts-rollup.js';
|
|
109
|
-
export { InfiniteQueryPageParamsOptions } from './_tsup-dts-rollup.js';
|
|
110
|
-
export { ThrowOnError } from './_tsup-dts-rollup.js';
|
|
111
|
-
export { QueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
112
|
-
export { WithRequired } from './_tsup-dts-rollup.js';
|
|
113
|
-
export { DefaultedQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
114
|
-
export { InfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
115
|
-
export { DefaultedInfiniteQueryObserverOptions } from './_tsup-dts-rollup.js';
|
|
116
|
-
export { FetchQueryOptions } from './_tsup-dts-rollup.js';
|
|
117
|
-
export { EnsureQueryDataOptions } from './_tsup-dts-rollup.js';
|
|
118
|
-
export { EnsureInfiniteQueryDataOptions } from './_tsup-dts-rollup.js';
|
|
119
|
-
export { FetchInfiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
120
|
-
export { ResultOptions } from './_tsup-dts-rollup.js';
|
|
121
|
-
export { RefetchOptions } from './_tsup-dts-rollup.js';
|
|
122
|
-
export { InvalidateQueryFilters } from './_tsup-dts-rollup.js';
|
|
123
|
-
export { RefetchQueryFilters } from './_tsup-dts-rollup.js';
|
|
124
|
-
export { InvalidateOptions } from './_tsup-dts-rollup.js';
|
|
125
|
-
export { ResetOptions } from './_tsup-dts-rollup.js';
|
|
126
|
-
export { FetchNextPageOptions } from './_tsup-dts-rollup.js';
|
|
127
|
-
export { FetchPreviousPageOptions } from './_tsup-dts-rollup.js';
|
|
128
|
-
export { QueryStatus } from './_tsup-dts-rollup.js';
|
|
129
|
-
export { FetchStatus } from './_tsup-dts-rollup.js';
|
|
130
|
-
export { QueryObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
131
|
-
export { QueryObserverPendingResult } from './_tsup-dts-rollup.js';
|
|
132
|
-
export { QueryObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
133
|
-
export { QueryObserverLoadingErrorResult } from './_tsup-dts-rollup.js';
|
|
134
|
-
export { QueryObserverRefetchErrorResult } from './_tsup-dts-rollup.js';
|
|
135
|
-
export { QueryObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
136
|
-
export { QueryObserverPlaceholderResult } from './_tsup-dts-rollup.js';
|
|
137
|
-
export { DefinedQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
138
|
-
export { QueryObserverResult } from './_tsup-dts-rollup.js';
|
|
139
|
-
export { InfiniteQueryObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
140
|
-
export { InfiniteQueryObserverPendingResult } from './_tsup-dts-rollup.js';
|
|
141
|
-
export { InfiniteQueryObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
142
|
-
export { InfiniteQueryObserverLoadingErrorResult } from './_tsup-dts-rollup.js';
|
|
143
|
-
export { InfiniteQueryObserverRefetchErrorResult } from './_tsup-dts-rollup.js';
|
|
144
|
-
export { InfiniteQueryObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
145
|
-
export { InfiniteQueryObserverPlaceholderResult } from './_tsup-dts-rollup.js';
|
|
146
|
-
export { DefinedInfiniteQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
147
|
-
export { InfiniteQueryObserverResult } from './_tsup-dts-rollup.js';
|
|
148
|
-
export { MutationKey } from './_tsup-dts-rollup.js';
|
|
149
|
-
export { MutationStatus } from './_tsup-dts-rollup.js';
|
|
150
|
-
export { MutationScope } from './_tsup-dts-rollup.js';
|
|
151
|
-
export { MutationMeta } from './_tsup-dts-rollup.js';
|
|
152
|
-
export { MutationFunctionContext } from './_tsup-dts-rollup.js';
|
|
153
|
-
export { MutationFunction } from './_tsup-dts-rollup.js';
|
|
154
|
-
export { MutationOptions } from './_tsup-dts-rollup.js';
|
|
155
|
-
export { MutationObserverOptions } from './_tsup-dts-rollup.js';
|
|
156
|
-
export { MutateOptions } from './_tsup-dts-rollup.js';
|
|
157
|
-
export { MutateFunction } from './_tsup-dts-rollup.js';
|
|
158
|
-
export { MutationObserverBaseResult } from './_tsup-dts-rollup.js';
|
|
159
|
-
export { MutationObserverIdleResult } from './_tsup-dts-rollup.js';
|
|
160
|
-
export { MutationObserverLoadingResult } from './_tsup-dts-rollup.js';
|
|
161
|
-
export { MutationObserverErrorResult } from './_tsup-dts-rollup.js';
|
|
162
|
-
export { MutationObserverSuccessResult } from './_tsup-dts-rollup.js';
|
|
163
|
-
export { MutationObserverResult } from './_tsup-dts-rollup.js';
|
|
164
|
-
export { QueryClientConfig } from './_tsup-dts-rollup.js';
|
|
165
|
-
export { DefaultOptions } from './_tsup-dts-rollup.js';
|
|
166
|
-
export { CancelOptions } from './_tsup-dts-rollup.js';
|
|
167
|
-
export { SetDataOptions } from './_tsup-dts-rollup.js';
|
|
168
|
-
export { NotifyEventType } from './_tsup-dts-rollup.js';
|
|
169
|
-
export { NotifyEvent } from './_tsup-dts-rollup.js';
|
package/build/legacy/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
export * from "@tanstack/query-core";
|
|
3
|
-
import { useQueryClient } from "./useQueryClient.js";
|
|
4
|
-
import { VueQueryPlugin } from "./vueQueryPlugin.js";
|
|
5
|
-
import { QueryClient } from "./queryClient.js";
|
|
6
|
-
import { QueryCache } from "./queryCache.js";
|
|
7
|
-
import { queryOptions } from "./queryOptions.js";
|
|
8
|
-
import { infiniteQueryOptions } from "./infiniteQueryOptions.js";
|
|
9
|
-
import { MutationCache } from "./mutationCache.js";
|
|
10
|
-
import { useQuery } from "./useQuery.js";
|
|
11
|
-
import { useQueries } from "./useQueries.js";
|
|
12
|
-
import { useInfiniteQuery } from "./useInfiniteQuery.js";
|
|
13
|
-
import { useMutation } from "./useMutation.js";
|
|
14
|
-
import { useIsFetching } from "./useIsFetching.js";
|
|
15
|
-
import { useIsMutating, useMutationState } from "./useMutationState.js";
|
|
16
|
-
import { VUE_QUERY_CLIENT } from "./utils.js";
|
|
17
|
-
export {
|
|
18
|
-
MutationCache,
|
|
19
|
-
QueryCache,
|
|
20
|
-
QueryClient,
|
|
21
|
-
VUE_QUERY_CLIENT,
|
|
22
|
-
VueQueryPlugin,
|
|
23
|
-
infiniteQueryOptions,
|
|
24
|
-
queryOptions,
|
|
25
|
-
useInfiniteQuery,
|
|
26
|
-
useIsFetching,
|
|
27
|
-
useIsMutating,
|
|
28
|
-
useMutation,
|
|
29
|
-
useMutationState,
|
|
30
|
-
useQueries,
|
|
31
|
-
useQuery,
|
|
32
|
-
useQueryClient
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n UndefinedInitialQueryOptions,\n DefinedInitialQueryOptions,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";AAAA,cAAc;AAEd,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAE/B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AAKrC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,eAAe,wBAAwB;AAChD,SAAS,wBAAwB;","names":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/infiniteQueryOptions.ts
|
|
21
|
-
var infiniteQueryOptions_exports = {};
|
|
22
|
-
__export(infiniteQueryOptions_exports, {
|
|
23
|
-
infiniteQueryOptions: () => infiniteQueryOptions
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(infiniteQueryOptions_exports);
|
|
26
|
-
function infiniteQueryOptions(options) {
|
|
27
|
-
return options;
|
|
28
|
-
}
|
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
-
0 && (module.exports = {
|
|
31
|
-
infiniteQueryOptions
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=infiniteQueryOptions.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/infiniteQueryOptions.ts"],"sourcesContent":["import type {\n DataTag,\n DefaultError,\n InfiniteData,\n NonUndefinedGuard,\n QueryKey,\n} from '@tanstack/query-core'\nimport type { UseInfiniteQueryOptions } from './useInfiniteQuery'\n\nexport type UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData?: undefined\n}\n\nexport type DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData:\n | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>)\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions(options: unknown) {\n return options\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2FO,SAAS,qBAAqB,SAAkB;AACrD,SAAO;AACT;","names":[]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { infiniteQueryOptions_alias_1 as infiniteQueryOptions } from './_tsup-dts-rollup.cjs';
|
|
2
|
-
export { UndefinedInitialDataInfiniteOptions_alias_1 as UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.cjs';
|
|
3
|
-
export { DefinedInitialDataInfiniteOptions_alias_1 as DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { infiniteQueryOptions_alias_1 as infiniteQueryOptions } from './_tsup-dts-rollup.js';
|
|
2
|
-
export { UndefinedInitialDataInfiniteOptions_alias_1 as UndefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
3
|
-
export { DefinedInitialDataInfiniteOptions_alias_1 as DefinedInitialDataInfiniteOptions } from './_tsup-dts-rollup.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/infiniteQueryOptions.ts"],"sourcesContent":["import type {\n DataTag,\n DefaultError,\n InfiniteData,\n NonUndefinedGuard,\n QueryKey,\n} from '@tanstack/query-core'\nimport type { UseInfiniteQueryOptions } from './useInfiniteQuery'\n\nexport type UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData?: undefined\n}\n\nexport type DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n> = UseInfiniteQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n initialData:\n | NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>\n | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>)\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): UndefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions<\n TQueryFnData,\n TError = DefaultError,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n TPageParam = unknown,\n>(\n options: DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n >,\n): DefinedInitialDataInfiniteOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryKey,\n TPageParam\n> & {\n queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>, TError>\n}\n\nexport function infiniteQueryOptions(options: unknown) {\n return options\n}\n"],"mappings":";AA2FO,SAAS,qBAAqB,SAAkB;AACrD,SAAO;AACT;","names":[]}
|