honojs/hono

`c.text()` is not typed for RPC

Closed this issue · 1 comments

What version of Hono are you using?

4.2.9

What runtime/platform is your app running on?

Node v20

What steps can reproduce the bug?

Declare a route with a return of c.text('anything')

What is the expected behavior?

The Response type should intersect TypedResponse<text>

What do you see instead?

The Response is not typed

Additional information

Image:
image

Fixes by #2581. Thanks!