UNPKG

erebus-sdk

Version:

To install dependencies:

1 lines 676 B
{"version":3,"sources":["../../src/server/rpc.ts"],"names":["createRpcClient","baseUrl","hc"],"mappings":"mDAYaA,CAAAA,CAAmBC,CAAAA,EACvBC,UAAYD,CAAO","file":"rpc.cjs","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"]}