Describe the bug#
gcTime is missing in-editor docs. Seems like an important one to have them as it's a (sort of) new option, and people are often confused about the difference between staleTime and cache/gcTime.
staleTime:

gcTime:

Your minimal, reproducible example#
https://github.com/c-ehrlich/rq-example
Steps to reproduce#
in the example repo:
pnpm i
- open App.tsx in editor
- in the options for
query, staleTime has in-editor docs but gcTime does not
or should be the same in any other repo that uses v5
Expected behavior#
I expected in-editor docs for gcTime
How often does this bug happen?#
Every time
Screenshots or Videos#
No response
Platform#
MacOS, VSCode 1.84.0
Tanstack Query adapter#
react-query
TanStack Query version#
5.7.2
TypeScript version#
5.2.2
Additional context#
No response
staleTimedocs are here, onQueryObserverOptions:https://github.com/TanStack/query/blob/8dfc52ad45a850711f6a48511062f0986797ce2d/packages/query-core/src/types.ts#L226-L230
I think this is the only place where we have js docs. we should probably add them on
QueryOptions, too:https://github.com/TanStack/query/blob/8dfc52ad45a850711f6a48511062f0986797ce2d/packages/query-core/src/types.ts#L141-L154
Open for contributions :)