query error typing help #1579
zhihengGet
started this conversation in
General
Replies: 1 comment 1 reply
-
There is always the possibility of a It's kinda how in TypeScript, in a So you will probably need to write some Type Guard function to make sure it is what you expect. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello, thanks for the help
i use custom
queryFn
and i typed the query result asthe thing is that i when i access
result.error.text
i keep gettingSerializedError
does not have texthow i remove this
SerializedError
from tsBeta Was this translation helpful? Give feedback.
All reactions