wyrd
wyrd
HHono
Created by wyrd on 5/5/2025 in #help
Why does .openapi(route, handler) return unknown type in client.ts when using OpenAPIHono?
I see. That makes a lot of sense. Thank you
17 replies
HHono
Created by wyrd on 5/5/2025 in #help
Why does .openapi(route, handler) return unknown type in client.ts when using OpenAPIHono?
I see i dont have to
const app = new OpenAPIHono()
app.openapi(getTodosRoute, (c) => {
// handler logic
})
const app = new OpenAPIHono()
app.openapi(getTodosRoute, (c) => {
// handler logic
})
I can just do
const app = new OpenAPIHono()
.openapi(getTodosRoute, (c) => {
// handler logic
})
const app = new OpenAPIHono()
.openapi(getTodosRoute, (c) => {
// handler logic
})
17 replies
HHono
Created by wyrd on 5/5/2025 in #help
Why does .openapi(route, handler) return unknown type in client.ts when using OpenAPIHono?
I see so chaining is the right way ?
17 replies