Implement RPC contract validation baseline
This commit is contained in:
7
apps/web/src/global.d.ts
vendored
7
apps/web/src/global.d.ts
vendored
@@ -1,8 +1,11 @@
|
||||
import type { RpcClient } from "../../../packages/contracts/src/rpc";
|
||||
import type { RpcClient, ServerEvent } from "../../../packages/contracts/src/rpc";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
mosaic?: RpcClient;
|
||||
mosaic?: RpcClient & {
|
||||
on(eventType: string, callback: (data: ServerEvent) => void): () => void;
|
||||
removeAllListeners(eventType?: string): void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user