UNPKG

rivetkit

Version:

Lightweight libraries for building stateful actors on edge platforms

11 lines (8 loc) 422 B
import { hc } from "hono/client"; import type { createManagerInspectorRouter } from "../manager"; type ManagerInspectorRouter = ReturnType<typeof createManagerInspectorRouter>; const client = hc<ManagerInspectorRouter>(""); export type ManagerInspectorClient = typeof client; export const createManagerInspectorClient = ( ...args: Parameters<typeof hc> ): ManagerInspectorClient => hc<ManagerInspectorRouter>(...args);