Files
MosaicIQ/apps/web/src/global.d.ts

13 lines
306 B
TypeScript

import type { RpcClient, ServerEvent } from "../../../packages/contracts/src/rpc";
declare global {
interface Window {
mosaic?: RpcClient & {
on(eventType: string, callback: (data: ServerEvent) => void): () => void;
removeAllListeners(eventType?: string): void;
};
}
}
export {};