zod-openapi infering route handler type from route handler

I've been trying for two hours to create a type helper for the route handler so I can extract it to its own file, but I can't figure out why the valid property is not working.

I saw cj using it in his syntax hono introduction
https://youtu.be/sYZW8TK2IV4?si=iCCHBmv7vA88Phya
Screenshot_11-Sep_12-27-16_28641.png
Screenshot_11-Sep_12-26-18_25630.png
Screenshot_11-Sep_12-26-09_14130.png
Screenshot_11-Sep_12-25-58_5350.png
YouTubeSyntax
In this video CJ introduces Hono, a web application framework for building backend applications with JavaScript. He shows 5+ reasons why hono is great and why you should try using it in your next app.

00:00 Intro
00:26 Familiar Route Creation
01:12 Type Safety
01:50 Supports Every JS Runtime
02:26 Many Built-in Helpers / Middlewares
03:40 JSX S...
Was this page helpful?