forked from yvesh/active-windows
-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.d.ts
38 lines (28 loc) · 944 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
declare module "electron-active-window";
/** Information about the active window */
export type WindowInformation = {
/** Operating system (linux | windows | macos) */
os: "linux" | "windows" | "macos";
/** Process name*/
windowClass: string;
/** Name of the window */
windowName: string;
/** Desktop on which the window is displayed (Linux only) */
windowDesktop: string | null;
/** Window Type (Linux only) */
windowType: string | null;
/** Process ID of the window */
windowPid: string;
/** Timestamp for the time at which this data was retrieved (MacOS only) */
atTime: string | null;
/** Timestamp for when the window was opened (MacOS only) */
launchDate: string | null;
/** MaxOS only */
isTerminated: number | null;
};
export default function module(): {
/**
* Returns information about the currently active desktop window
*/
getActiveWindow: () => Promise<WindowInformation>;
};