Types for req.parsedBody
Is it possible to add the ability to pass a generic type to bodyParse? https://github.com/honojs/hono/blob/master/src/middleware/body-parse/index.ts#L7
Example:
app.post('/api/post/:id', bodyParse(), async c => {
const body = c.req.parsedBody;
});
That may be difficult, but it's a good theme. I'll give it some more thought.
I closed it as I ended up using zod to validate it, as technically the payload is unknown at runtime.

Perhaps moving it to type unknown would be good? It would prevent a user from having a runtime error.
It is certainly one way to use zod. However, I think it's difficult to make it unknown because there are use cases to use parsedBody directly not using a validator such as zod.
For example, I think it's good to make it a function, like c.req.parsed body(). In this case, we can pass the generics easily.
const props = c.req.parsedBody<Props>()
Though, it's still in the planning stages.