Replies: 1 comment
-
Proposed by #3750 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently using urql and encountered a situation where I couldn't narrow down the type of data after checking error. Here's an example:
Even though I've checked the error and ensured the code won't run when
error
isundefined
, the type ofdata
remainsobject | undefined
.Would it be possible to narrow the type of
data
to justobject
in this case?I may not fully understand the behavior of this library, so I would appreciate any clarification or guidance on whether this is possible.
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions