vV
Convex Community2y ago
14 replies
v

Issue with Type Errors when Exporting Routes with ActionCtx result.

When I export the route, imported types from
_generated
default to
any
. Adding Promise<Response> to the lambda or using zValidator for the response resolves type errors. Regardless of abstracting logic or stringifying results, this type error persists. Unsure of the cause, it seems specific to returning values from the action context. My goal Hono Documentation on API Routing and RPC Client Guide. Any insights appreciated. This is not a big issue because i can use zValidator. I just want to understand.
image.png
image.png
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
RPC - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Routing - Hono
Was this page helpful?