Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
NamesMT opened this issue Apr 30, 2024 · 1 comment
Closed

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

NamesMT opened this issue Apr 30, 2024 · 1 comment
Labels

Comments

@NamesMT
Copy link
Contributor

NamesMT commented Apr 30, 2024

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

@NamesMT NamesMT added the bug label Apr 30, 2024
@yusukebe
Copy link
Member

yusukebe commented May 3, 2024

Fixes by #2581. Thanks!

@yusukebe yusukebe closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants