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

Patching types of c.env #577

Closed
wants to merge 1 commit into from
Closed

Conversation

shahil-yadav
Copy link

Problem: TS2345: Argument of type Context<BlankEnv, "/ env", BlankInput> is not assignable to parameter of types

Patch: Directly applying binding types to the hono constructor fixes the types issue, i found out this in the cloudfare section of loading env

Problem: TS2345: Argument of type Context<BlankEnv, "/ env", BlankInput> is not assignable to parameter of types

Patch: Directly applying binding types to the hono constructor fixes the issue
@yusukebe
Copy link
Member

yusukebe commented Feb 3, 2025

Hi @shahil-yadav

Thank you for the PR. This is a bug. I'll fix it.

@shahil-yadav
Copy link
Author

Hi @shahil-yadav

Thank you for the PR. This is a bug. I'll fix it.

Most welcome :), glad it did help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants