type SuspenseQueriesOptions<T, TResults, TDepth> = TDepth["length"] extends MAXIMUM_DEPTH ? UseSuspenseQueryOptions[] : T extends [] ? [] : T extends [infer Head] ? [...TResults, GetUseSuspenseQueryOptions<Head>] : T extends [infer Head, ...(infer Tails)] ? SuspenseQueriesOptions<[...Tails], [...TResults, GetUseSuspenseQueryOptions<Head>], [...TDepth, 1]> : unknown[] extends T ? T : T extends UseSuspenseQueryOptions<infer TQueryFnData, infer TError, infer TData, infer TQueryKey>[] ? UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey>[] : UseSuspenseQueryOptions[];Defined in: packages/react-query/src/useSuspenseQueries.ts:122
The queries array accepted by useSuspenseQueries. Recursively unwraps each tuple element so every entry's queryFn/select are inferred individually, up to 20 elements — past that, a tuple falls back to a single homogeneous UseSuspenseQueryOptions type.
An opaque array (e.g. unknown[]) is returned as-is; a non-tuple array whose element type structurally matches a query options object is mapped per-element instead, still inferring each entry individually; any other non-tuple array — one whose element type doesn't match the expected options shape — falls back to that same homogeneous options type too.
T extends any[]
The type of the queries array as written at the call site.
TResults extends any[] = []
The internal accumulator that this type builds during recursion. It is not meant to be set explicitly.
TDepth extends ReadonlyArray<number> = []
The internal recursion-depth counter, checked against the 20-element limit. It is not meant to be set explicitly.