@tanstack/query-core 4.10.0 → 4.10.3
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/build/lib/types.d.ts +6 -2
- package/package.json +1 -1
- package/src/types.ts +6 -2
package/build/lib/types.d.ts
CHANGED
|
@@ -22,7 +22,9 @@ export interface InfiniteData<TData> {
|
|
|
22
22
|
pages: TData[];
|
|
23
23
|
pageParams: unknown[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export interface QueryMeta {
|
|
26
|
+
[index: string]: unknown;
|
|
27
|
+
}
|
|
26
28
|
export declare type NetworkMode = 'online' | 'always' | 'offlineFirst';
|
|
27
29
|
export interface QueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> {
|
|
28
30
|
/**
|
|
@@ -330,7 +332,9 @@ export interface InfiniteQueryObserverSuccessResult<TData = unknown, TError = un
|
|
|
330
332
|
export declare type InfiniteQueryObserverResult<TData = unknown, TError = unknown> = InfiniteQueryObserverLoadingErrorResult<TData, TError> | InfiniteQueryObserverLoadingResult<TData, TError> | InfiniteQueryObserverRefetchErrorResult<TData, TError> | InfiniteQueryObserverSuccessResult<TData, TError>;
|
|
331
333
|
export declare type MutationKey = readonly unknown[];
|
|
332
334
|
export declare type MutationStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
333
|
-
export
|
|
335
|
+
export interface MutationMeta {
|
|
336
|
+
[index: string]: unknown;
|
|
337
|
+
}
|
|
334
338
|
export declare type MutationFunction<TData = unknown, TVariables = unknown> = (variables: TVariables) => Promise<TData>;
|
|
335
339
|
export interface MutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> {
|
|
336
340
|
mutationFn?: MutationFunction<TData, TVariables>;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -48,7 +48,9 @@ export interface InfiniteData<TData> {
|
|
|
48
48
|
pageParams: unknown[]
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export
|
|
51
|
+
export interface QueryMeta {
|
|
52
|
+
[index: string]: unknown
|
|
53
|
+
}
|
|
52
54
|
|
|
53
55
|
export type NetworkMode = 'online' | 'always' | 'offlineFirst'
|
|
54
56
|
|
|
@@ -534,7 +536,9 @@ export type MutationKey = readonly unknown[]
|
|
|
534
536
|
|
|
535
537
|
export type MutationStatus = 'idle' | 'loading' | 'success' | 'error'
|
|
536
538
|
|
|
537
|
-
export
|
|
539
|
+
export interface MutationMeta {
|
|
540
|
+
[index: string]: unknown
|
|
541
|
+
}
|
|
538
542
|
|
|
539
543
|
export type MutationFunction<TData = unknown, TVariables = unknown> = (
|
|
540
544
|
variables: TVariables,
|