@tanstack/react-query
Advanced tools
Comparing version 5.51.17 to 5.51.18
@@ -1,6 +0,6 @@ | ||
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core'; | ||
import { DefaultError, QueryKey, InitialDataFunction, DataTag } from '@tanstack/query-core'; | ||
import { UseQueryOptions } from './types.js'; | ||
type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & { | ||
initialData?: undefined; | ||
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>; | ||
}; | ||
@@ -7,0 +7,0 @@ type NonUndefinedGuard<T> = T extends undefined ? never : T; |
@@ -1,6 +0,6 @@ | ||
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core'; | ||
import { DefaultError, QueryKey, InitialDataFunction, DataTag } from '@tanstack/query-core'; | ||
import { UseQueryOptions } from './types.js'; | ||
type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & { | ||
initialData?: undefined; | ||
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>; | ||
}; | ||
@@ -7,0 +7,0 @@ type NonUndefinedGuard<T> = T extends undefined ? never : T; |
{ | ||
"name": "@tanstack/react-query", | ||
"version": "5.51.17", | ||
"version": "5.51.18", | ||
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -1,2 +0,7 @@ | ||
import type { DataTag, DefaultError, QueryKey } from '@tanstack/query-core' | ||
import type { | ||
DataTag, | ||
DefaultError, | ||
InitialDataFunction, | ||
QueryKey, | ||
} from '@tanstack/query-core' | ||
import type { UseQueryOptions } from './types' | ||
@@ -10,3 +15,3 @@ | ||
> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & { | ||
initialData?: undefined | ||
initialData?: undefined | InitialDataFunction<NonUndefinedGuard<TQueryFnData>> | ||
} | ||
@@ -13,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1103238
21992