@tanstack/solid-query
Advanced tools
Comparing version 5.33.1 to 5.34.0
@@ -1,2 +0,2 @@ | ||
import { DefaultError, QueryKey, OmitKeyof, QueryObserverOptions as QueryObserverOptions$1, InfiniteQueryObserverOptions as InfiniteQueryObserverOptions$1, DefaultOptions as DefaultOptions$1, QueryClientConfig as QueryClientConfig$1, QueryClient as QueryClient$1, QueryObserverResult, DefinedQueryObserverResult, InfiniteQueryObserverResult, MutationObserverOptions, MutateFunction, MutationObserverResult, QueryFilters, InfiniteData, MutationFilters, MutationState, Mutation, QueriesPlaceholderDataFunction, QueryFunction, SkipToken, ThrowOnError } from '@tanstack/query-core'; | ||
import { DefaultError, QueryKey, OmitKeyof, QueryObserverOptions as QueryObserverOptions$1, InfiniteQueryObserverOptions as InfiniteQueryObserverOptions$1, DefaultOptions as DefaultOptions$1, QueryClientConfig as QueryClientConfig$1, QueryClient as QueryClient$1, QueryObserverResult, DefinedQueryObserverResult, InfiniteQueryObserverResult, MutationObserverOptions, MutateFunction, MutationObserverResult, DataTag, QueryFilters, InfiniteData, MutationFilters, MutationState, Mutation, QueriesPlaceholderDataFunction, QueryFunction, SkipToken, ThrowOnError } from '@tanstack/query-core'; | ||
export * from '@tanstack/query-core'; | ||
@@ -96,4 +96,8 @@ import * as solid_js from 'solid-js'; | ||
}>; | ||
declare function queryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TOptions extends UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> = UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>(options: TOptions): TOptions; | ||
declare function queryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TOptions extends DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> = DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>(options: TOptions): TOptions; | ||
declare function queryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TOptions extends ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>> = ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>>(options: ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>): ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>> & { | ||
queryKey: DataTag<TQueryKey, TQueryFnData>; | ||
}; | ||
declare function queryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TOptions extends ReturnType<DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>> = ReturnType<DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>>(options: ReturnType<DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>): ReturnType<DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>> & { | ||
queryKey: DataTag<TQueryKey, TQueryFnData>; | ||
}; | ||
declare function createQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: () => QueryClient): CreateQueryResult<TData, TError>; | ||
@@ -100,0 +104,0 @@ declare function createQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: () => QueryClient): DefinedCreateQueryResult<TData, TError>; |
{ | ||
"name": "@tanstack/solid-query", | ||
"version": "5.33.1", | ||
"version": "5.34.0", | ||
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
import { QueryObserver } from '@tanstack/query-core' | ||
import { createMemo } from 'solid-js' | ||
import { createBaseQuery } from './createBaseQuery' | ||
import type { DefaultError, QueryKey } from '@tanstack/query-core' | ||
import type { DataTag, DefaultError, QueryKey } from '@tanstack/query-core' | ||
import type { QueryClient } from './QueryClient' | ||
@@ -42,9 +42,16 @@ import type { Accessor } from 'solid-js' | ||
TQueryKey extends QueryKey = QueryKey, | ||
TOptions extends UndefinedInitialDataOptions< | ||
TQueryFnData, | ||
TError, | ||
TData, | ||
TQueryKey | ||
> = UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, | ||
>(options: TOptions): TOptions | ||
TOptions extends ReturnType< | ||
UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
> = ReturnType< | ||
UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
>, | ||
>( | ||
options: ReturnType< | ||
UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
>, | ||
): ReturnType< | ||
UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
> & { | ||
queryKey: DataTag<TQueryKey, TQueryFnData> | ||
} | ||
@@ -56,9 +63,16 @@ export function queryOptions< | ||
TQueryKey extends QueryKey = QueryKey, | ||
TOptions extends DefinedInitialDataOptions< | ||
TQueryFnData, | ||
TError, | ||
TData, | ||
TQueryKey | ||
> = DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>, | ||
>(options: TOptions): TOptions | ||
TOptions extends ReturnType< | ||
DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
> = ReturnType< | ||
DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
>, | ||
>( | ||
options: ReturnType< | ||
DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
>, | ||
): ReturnType< | ||
DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> | ||
> & { | ||
queryKey: DataTag<TQueryKey, TQueryFnData> | ||
} | ||
@@ -65,0 +79,0 @@ export function queryOptions(options: unknown) { |
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
453569
36
13619