HonoH
Hono8mo ago
Prosigoj

Route types for client

I found an example that gives the hc client route types
const app = new Hono();

const routes = app.get("/api/clock", (c) => {
  return c.json({
    time: new Date().toLocaleTimeString(),
  });
});

export type AppType = typeof routes;
but how would that look like if I had more routes?
Was this page helpful?