UNPKG

@erebus-sh/sdk

Version:
1 lines 651 B
{"version":3,"file":"rpc-CctEdeqq.cjs","names":[],"sources":["../src/server/rpc.ts"],"sourcesContent":["import { hc } from \"hono/client\";\n\n// Import only the routes type, not the entire app with server dependencies\nimport type { AppType as ServerRoutes } from \"./app\";\n\n// Re-export the AppType for client usage\nexport type AppType = ServerRoutes;\n\n/**\n * Creates an RPC client for communicating with the Erebus server\n * This function can be safely imported by client-side code\n */\nexport const createRpcClient = (baseUrl: string) => {\n return hc<AppType>(baseUrl);\n};\n"],"mappings":"0IAYA,MAAa,gBAAmB,IAC9B,EAAA,YAAA,IAAmB,EAAQ"}