queryFn property is omitted when queryFn has arguments #99
Unanswered
ayarayarovich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
In my project I heavily use
queryFn
return type for data typing.But as i discovered recently I can't do it that way when
queryFn
accepts some kind of argument (in my casectx
argument) becausequeryFn
property is omitted when i doReturnType<typeof queries.payments>
Here is definition of the query
and interfaces used inside
So the question is can I somehow obtain queryFn's return type?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions