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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
https://tanstack.com/query/v5/docs/framework/react/typescript#typing-the-error-field |
Beta Was this translation helpful? Give feedback.
https://tanstack.com/query/v5/docs/framework/react/typescript#typing-the-error-field