Types issue in zod-openapi in recent release 0.19.4 (repro attached)
Maybe I'm holding it wrong, but this minimal file reproduces the type error:
6 Replies
Here's the text of the type error
perhaps there's a bug in the fix for this issue š¤ https://github.com/honojs/middleware/issues/1102
GitHub
Variables are of type
never
when there's a middleware with @hono/...Which middleware has the bug? @hono/zod-openapi What version of the middleware? 0.19.2 What version of Hono are you using? 4.7.5 What runtime/platform is your app running on? (with version if possi...
i can't repro on
0.19.4
have you tried restarting your ts server, and/or reinstalling dependencies?got this down to a minimal reproduction sandbox on Stackblitz
Run
npm run typecheck
to see the error (the editor doesn't immediately show the issue until the file is edited)Taylor Beseda
StackBlitz
hono-zod-type-error - StackBlitz
A TypeScript project based on @hono/zod-openapi, @types/node and typescript
Dope. Thanks for putting this together!