Add v2 rewrite: monorepo with desktop and web apps, shared packages, docs, and wireframes
This commit is contained in:
9
apps/desktop/src/rpc.ts
Normal file
9
apps/desktop/src/rpc.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { RpcMethod, RpcRequestMap, RpcResult } from "../../../packages/contracts/src/rpc.js";
|
||||
import { handleMockRpc } from "../../../packages/shared/src/mockRpc.js";
|
||||
|
||||
export async function handleRpc<T extends RpcMethod>(
|
||||
method: T,
|
||||
payload: RpcRequestMap[T]
|
||||
): Promise<RpcResult<T>> {
|
||||
return handleMockRpc(method, payload);
|
||||
}
|
||||
Reference in New Issue
Block a user