Closed dustinsmith1024 closed 1 month ago
Hi @dustinsmith1024
Is this way of reproducing it correctly?
https://github.com/user-attachments/assets/52a1fe57-c3a1-434e-a64c-a8c6976ba9a0
If so, it does not throw errors. Can you provide a minimal project to reproduce it?
Here you go: https://github.com/dustinsmith1024/hono-types-issue
@dustinsmith1024 Thanks. Will be fixed soon.
Awesome thanks - Should I be doing something different with Context to prevent it?
@dustinsmith1024
Should I be doing something different with Context to prevent it?
It's a bug, so you don't have to add anything. Just wait for a new version!
Hi @dustinsmith1024
This may be fixed in the latest version v4.5.0
. Can you try it?
We can close this issue now. If you still have a problem, feel free to reopen.
What version of Hono are you using?
4.4.7+
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
I am attempting to upgrade to the latest 4.4 versions and I get a types issue with Array based elements in the HonoContext.
Sample context:
What is the expected behavior?
No type errors should happen. This doesn't happen on 4.4.6, so maybe related to https://github.com/honojs/hono/pull/2987?
What do you see instead?
Additional information
No response