Uh oh!
There was an error while loading. Please reload this page.
fix(hono): Allow passing env and fix type issues - #19825
Conversation
size-limit report 📦
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Uh oh!
There was an error while loading. Please reload this page.
| * wrapped in a Sentry span. Supports both forms: `app.use(...handlers)` and `app.use(path, ...handlers)`. | ||
| */ | ||
| export function patchAppUse(app: Hono): void { | ||
| export function patchAppUse<E extends Env>(app: Hono<E>): void { |
There was a problem hiding this comment.
l: If E is never used maybe it'd be better to use the following (haven't tested it though)? It reminds me a bit of #18302
| exportfunctionpatchAppUse<EextendsEnv>(app: Hono<E>): void{ | |
| exportfunctionpatchAppUse<HextendsHono>(app: H): void{ |
There was a problem hiding this comment.
This would give me a massive type error :/
Uh oh!
There was an error while loading. Please reload this page.

Fixes some things in the Hono cloudflare export:
env@sentry/cloudflareCloses#19826 (added automatically)