@kimesh/query 0.2.29 → 0.2.30-nightly.20260128101501
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.mts +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _tanstack_vue_query4 from "@tanstack/vue-query";
|
|
2
2
|
import { QueryClient, QueryClient as QueryClient$1, QueryKey, QueryKey as QueryKey$1, UseInfiniteQueryReturnType, UseQueryReturnType, VueQueryPlugin, VueQueryPluginOptions, queryOptions, useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/vue-query";
|
|
3
3
|
import { FetchContext, FetchContext as FetchContext$1, FetchError, FetchResponse, FetchResponse as FetchResponse$1 } from "ofetch";
|
|
4
4
|
import * as vue0 from "vue";
|
|
@@ -611,7 +611,7 @@ declare function defineQuery<TData>(options: {
|
|
|
611
611
|
queryFn?: () => Promise<TData>;
|
|
612
612
|
staleTime?: number;
|
|
613
613
|
gcTime?: number;
|
|
614
|
-
}): () =>
|
|
614
|
+
}): () => _tanstack_vue_query4.UseQueryReturnType<TData, Error>;
|
|
615
615
|
//#endregion
|
|
616
616
|
//#region src/define-mutation.d.ts
|
|
617
617
|
/**
|
|
@@ -648,7 +648,7 @@ interface MutationOptions<TData, TVariables, TError = Error> {
|
|
|
648
648
|
* mutate({ title: 'New Post', body: 'Content...' })
|
|
649
649
|
* ```
|
|
650
650
|
*/
|
|
651
|
-
declare function defineMutation<TData, TVariables, TError = Error>(options: MutationOptions<TData, TVariables, TError>): () =>
|
|
651
|
+
declare function defineMutation<TData, TVariables, TError = Error>(options: MutationOptions<TData, TVariables, TError>): () => _tanstack_vue_query4.UseMutationReturnType<TData, TError, TVariables, unknown, Omit<_tanstack_vue_query4.MutationObserverIdleResult<TData, TError, TVariables, unknown>, "mutate" | "reset"> | Omit<_tanstack_vue_query4.MutationObserverLoadingResult<TData, TError, TVariables, unknown>, "mutate" | "reset"> | Omit<_tanstack_vue_query4.MutationObserverErrorResult<TData, TError, TVariables, unknown>, "mutate" | "reset"> | Omit<_tanstack_vue_query4.MutationObserverSuccessResult<TData, TError, TVariables, unknown>, "mutate" | "reset">>;
|
|
652
652
|
//#endregion
|
|
653
653
|
//#region src/query-keys.d.ts
|
|
654
654
|
/**
|