Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tshaddox
· 5y ago · 0 comments
I believe this will also obviate a common recommendation to not destructure when using React Query:
https://tkdodo.eu/blog/react-query-and-type-script#type-narr...
Comments
[–]
dragosmocrii
5y ago
Thanks for sharing this. I literally ran into the same issue yesterday, and was wondering why TS can't understand that I am discriminating on the isSucces property.
[–]
tkdodo
5y ago
I’ll definitely update that article once the new TS version is released :)