🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
with preserveSymlinks true, hovering in IDE shows "const data: QueryObserverResult<TData, TError>". bad type inference
with preserveSymlinks false, hovering in IDE shows "const data: number" which is (almost) correct. it should be "number | undefined"
2 problems here, but the first one is the main one
Describe the bug
with preserveSymlinks true, hovering in IDE shows "const data: QueryObserverResult<TData, TError>". bad type inference with preserveSymlinks false, hovering in IDE shows "const data: number" which is (almost) correct. it should be "number | undefined"
2 problems here, but the first one is the main one
Your minimal, reproducible example
see above
Steps to reproduce
see above
Expected behavior
see above
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
Tanstack Query adapter
None
TanStack Query version
5.48.0
TypeScript version
5.5.2
Additional context
No response