Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
Hono
What does `await c.req.json<OrderInput>()` guarantee about an incoming body?
from Hono
Hono 4.13.5 / Node 24 / TypeScript 6
beginner
1 min
What does `await c.req.json<OrderInput>()` guarantee about an incoming body?
It validates every field at runtime before returning.
It changes the static TypeScript type but does not validate the network data.
It authorizes the caller to create an order.
It rejects every unknown field automatically.
Check
Ask AI about this kata
Report an error
previous kata
Which type should an `hc` client receive for reliable route inference?
Quiz
next kata
Spot the bug in Hono admin middleware
Spot the bug
A new version is available
Reload