queryOptions

Function: queryOptions()

queryOptions(options)

ts
function queryOptions<TQueryFnData, TError, TData, TQueryKey>(
  options,
): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object
function queryOptions<TQueryFnData, TError, TData, TQueryKey>(
  options,
): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object

Type Parameters

TQueryFnData = unknown

TError = Error

TData = TQueryFnData

TQueryKey extends QueryKey = QueryKey

Parameters

options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>

Returns

DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object

Defined in

packages/svelte-query/src/queryOptions.ts:26

queryOptions(options)

ts
function queryOptions<TQueryFnData, TError, TData, TQueryKey>(
  options,
): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object
function queryOptions<TQueryFnData, TError, TData, TQueryKey>(
  options,
): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object

Type Parameters

TQueryFnData = unknown

TError = Error

TData = TQueryFnData

TQueryKey extends QueryKey = QueryKey

Parameters

options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>

Returns

UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object

Defined in

packages/svelte-query/src/queryOptions.ts:37