TanStackOSS
    query
    fix(svelte-query): wrap TData in NoInfer on query return types (#7673) The original report (#7673) showed `select`'s `data` parameter typed as `any` when wrapping options in a Svelte 4 `derived` store. Svelte 5 removed that store-based API and the basic case now infers correctly, but `createQuery` / `createInfiniteQuery` still let TypeScript widen `TData` from the result-type annotation, unlike `react-query`, `preact-query`, and `vue-query` which all wrap `TData` in `NoInfer`. Aligning svelte-query with the rest of the ecosystem ensures `TData` comes from the input options only, locking in the inferred `select` result and preventing silent widening when the call site is annotated. Adds three type tests covering: select inference from queryFn return, select inference when spreading queryOptions, and the negative case where a wrong result-type annotation must not widen TData. Generated by Claude Code Vibe coded by ousamabenyounes Co-Authored-By: Claude <noreply@anthropic.com>
    nx run-many --target=build --exclude=examples/** --exclude=integrations/**
Succeeded
CI Pipeline Execution

nx run-many --target=build --exclude=examples/** --exclude=integrations/**

Click to copy
Linux
4 CPU cores
93b2845010578
100%

Cache hits

24 of 24 tasks used cache.

Get faster results

Learn how to enable distribution.

Atomizer enabled

24 groups of tasks optimized.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools