MCPcopy
hub / github.com/iOfficeAI/AionUi / ElectronAPI

Interface ElectronAPI

tests/vitest.dom.setup.ts:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10// Extend global types for testing
11interface ElectronAPI {
12 emit: () => Promise<void>;
13 on: () => void;
14 windowControls: {
15 minimize: () => Promise<void>;
16 maximize: () => Promise<void>;
17 unmaximize: () => Promise<void>;
18 close: () => Promise<void>;
19 isMaximized: () => Promise<boolean>;
20 onMaximizedChange: () => () => void;
21 };
22}
23
24declare global {
25 // eslint-disable-next-line no-var

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected