ctx.req.query()
should return Record<string, string | undefined>
#3426
Labels
enhancement
New feature or request.
What version of Hono are you using?
4.6.2
What runtime/platform is your app running on?
Not matter
What steps can reproduce the bug?
I think the return type of
c.req.query()
should beRecord<string, string | undefined>
instead ofRecord<string, string>
The latter will cause the following code to compile without errors, but to actually run with errors:
What is the expected behavior?
The return type of
c.req.query()
should beRecord<string, string | undefined>
What do you see instead?
Record<string, string>
Additional information
No response
The text was updated successfully, but these errors were encountered: