honojs / hono

Web framework built on Web Standards
https://hono.dev
MIT License
19.07k stars 544 forks source link

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

Closed NamesMT closed 5 months ago

NamesMT commented 5 months ago

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

yusukebe commented 5 months ago

Fixes by #2581. Thanks!