MCPcopy
hub / github.com/responsively-org/responsively-app / Window

Interface Window

desktop-app/src/renderer/preload.d.ts:4–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3declare global {
4 interface Window {
5 electron: {
6 ipcRenderer: {
7 sendMessage<T>(channel: Channels, ...args: T[]): void;
8 on<T>(
9 channel: string,
10 func: (...args: T[]) => void
11 ): (() => void) | undefined;
12 once<T>(channel: string, func: (...args: T[]) => void): void;
13 invoke<T, P>(channel: string, ...args: T[]): Promise<P>;
14 removeListener<T>(channel: string, func: (...args: T[]) => void): void;
15 removeAllListeners(channel: string): void;
16 };
17 store: {
18 /* eslint-disable @typescript-eslint/no-explicit-any */
19 get: (key: string) => any;
20 set: (key: string, val: any) => void;
21 };
22 };
23 responsively: {
24 webviewPreloadPath: string;
25 };
26 }
27}
28
29export {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected