Type inference breaks after upgrading hono
(Example image at the end of post)
The following code relies on type inference to work. When upgrading from Hono version
4.2.2
to 4.4.3
on both the frontend and backend, the following code broke.
1. I do an rpc fetch like this:
2. Then I pass the request promise to a function which handles the request
Then I check if the request was successful and fail to read the data. All the type inference stays until I call .json()
.
What could be causing this?0 Replies