@tanstack/solid-query
Advanced tools
Comparing version 5.8.7 to 5.9.0
@@ -115,3 +115,3 @@ import { DefaultError, QueryKey, QueryObserverOptions as QueryObserverOptions$1, InfiniteQueryObserverOptions as InfiniteQueryObserverOptions$1, DefaultOptions as DefaultOptions$1, QueryClientConfig as QueryClientConfig$1, QueryClient as QueryClient$1, WithRequired, QueryObserverResult, DefinedQueryObserverResult, InfiniteQueryObserverResult, MutationObserverOptions, MutateFunction, MutationObserverResult, QueryFilters, InfiniteData, MutationFilters, MutationState, Mutation, QueriesPlaceholderDataFunction, QueryFunction, ThrowOnError } from '@tanstack/query-core'; | ||
queryFn?: QueryFunction<infer TQueryFnData, infer TQueryKey>; | ||
select: (data: any) => infer TData; | ||
select?: (data: any) => infer TData; | ||
throwOnError?: ThrowOnError<any, infer TError, any, any>; | ||
@@ -133,6 +133,6 @@ } ? CreateQueryOptionsForCreateQueries<TQueryFnData, TError, TData, TQueryKey> : T extends { | ||
} ? CreateQueryResult<TData, TError> : T extends [any, infer TError, infer TData] ? CreateQueryResult<TData, TError> : T extends [infer TQueryFnData, infer TError] ? CreateQueryResult<TQueryFnData, TError> : T extends [infer TQueryFnData] ? CreateQueryResult<TQueryFnData> : T extends { | ||
queryFn?: QueryFunction<unknown, any>; | ||
select: (data: any) => infer TData; | ||
queryFn?: QueryFunction<infer TQueryFnData, any>; | ||
select?: (data: any) => infer TData; | ||
throwOnError?: ThrowOnError<any, infer TError, any, any>; | ||
} ? CreateQueryResult<TData, unknown extends TError ? DefaultError : TError> : T extends { | ||
} ? CreateQueryResult<unknown extends TData ? TQueryFnData : TData, unknown extends TError ? DefaultError : TError> : T extends { | ||
queryFn?: QueryFunction<infer TQueryFnData, any>; | ||
@@ -139,0 +139,0 @@ throwOnError?: ThrowOnError<any, infer TError, any, any>; |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.8.7", | ||
"version": "5.9.0", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -64,3 +64,3 @@ "author": "tannerlinsley", | ||
"test:types": "tsc", | ||
"test:lib": "vitest run --coverage", | ||
"test:lib": "vitest run --coverage --retry=3", | ||
"test:lib:dev": "vitest watch --coverage", | ||
@@ -67,0 +67,0 @@ "test:build": "publint --strict", |
@@ -68,3 +68,3 @@ import { QueriesObserver } from '@tanstack/query-core' | ||
queryFn?: QueryFunction<infer TQueryFnData, infer TQueryKey> | ||
select: (data: any) => infer TData | ||
select?: (data: any) => infer TData | ||
throwOnError?: ThrowOnError<any, infer TError, any, any> | ||
@@ -111,8 +111,8 @@ } | ||
T extends { | ||
queryFn?: QueryFunction<unknown, any> | ||
select: (data: any) => infer TData | ||
queryFn?: QueryFunction<infer TQueryFnData, any> | ||
select?: (data: any) => infer TData | ||
throwOnError?: ThrowOnError<any, infer TError, any, any> | ||
} | ||
? CreateQueryResult< | ||
TData, | ||
unknown extends TData ? TQueryFnData : TData, | ||
unknown extends TError ? DefaultError : TError | ||
@@ -119,0 +119,0 @@ > |
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
431339