Repository navigation
Define error type #7177
Answered
by
TkDodo
kholiavko-roman
asked this question in
Q&A
Define error type
#7177
|
How to set an error type to avoid ts errors like
All the answers suggest checking the error by type in runtime, but it's not quite useful in some cases Is there a different way to type an error? I know that in version 4 it was possible to use Thanks. |
Answered by
TkDodo
Mar 26, 2024
Replies: 2 comments 5 replies
|
https://tanstack.com/query/v5/docs/framework/react/typescript#typing-the-error-field |
5 replies
Answer selected by
kholiavko-roman
|
options?: UseMutationOptions< |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

https://tanstack.com/query/v5/docs/framework/react/typescript#typing-the-error-field