You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an instance of a class is returned through c.json, if the type of a certain property in this class is unknown, the return value obtained by the Hono client request will be never.
#3823
Open
quark-ftc opened this issue
Jan 12, 2025
· 0 comments
What runtime/platform is your app running on? (with version if possible)
Node.js v22.11.0
What steps can reproduce the bug?
for example:
When errorInfo is defined as unknown, the type of the response data carried in the Hono client is never.However, if the type of errorInfo is set to any, the type derivation result of the response data obtained by the Hono client will be correct.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Hono are you using?
4.6.13
What runtime/platform is your app running on? (with version if possible)
Node.js v22.11.0
What steps can reproduce the bug?
for example:
When errorInfo is defined as unknown, the type of the response data carried in the Hono client is never.However, if the type of errorInfo is set to any, the type derivation result of the response data obtained by the Hono client will be correct.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: