Skip to content
All tags

#fetch

2 posts

Hono RPC: Infer Fetch Client Types from Route Implementations

Hono RPC exports a route's `typeof AppType` so `hc` can infer inputs, response bodies, and status codes. The shared artifact is a TypeScript type, not an independent wire schema.

openapi-typescript: Turn OpenAPI into Runtime-Free Types and a Fetch Client

openapi-typescript converts OpenAPI 3.0 and 3.1 into pure TypeScript types; openapi-fetch then infers methods, literal paths, parameters, and response unions from that schema.