-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathglobal.d.ts
More file actions
20 lines (16 loc) · 797 Bytes
/
Copy pathglobal.d.ts
File metadata and controls
20 lines (16 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* eslint-disable unicorn/require-module-specifiers -- The preload API contract uses a repository-local type import. */
import type { ElectronAPI } from "./electron-app/shared/preloadApi";
/*
Global ambient type augmentation for values injected via the Electron preload script.
This provides TypeScript awareness for `window.electronAPI` and related helpers so that
renderer JavaScript (checked with `checkJs`) does not emit "Property 'electronAPI' does not exist" errors.
The preload API uses explicit IPC contract types.
*/
declare global {
interface Window {
/* Core preload API exposed by the Electron preload script. */
electronAPI: ElectronAPI;
}
}
export {};
/* eslint-enable unicorn/require-module-specifiers -- Re-enable ambient declaration lint rules. */