electron-types 44.1.1 → 44.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
14
14
  Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
15
15
 
16
16
  ```bash
17
- npm install -D electron-types@44.1.1
17
+ npm install -D electron-types@44.2.0
18
18
  # or
19
- yarn add -D electron-types@44.1.1
19
+ yarn add -D electron-types@44.2.0
20
20
  # or
21
- pnpm add -D electron-types@44.1.1
21
+ pnpm add -D electron-types@44.2.0
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.1.1
1
+ // Type definitions for Electron 44.2.0
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/typescript-definitions
@@ -1156,6 +1156,12 @@ declare namespace Electron {
1156
1156
  /**
1157
1157
  * Array of `ProcessMetric` objects that correspond to memory and CPU usage
1158
1158
  * statistics of all the processes associated with the app.
1159
+ *
1160
+ * > [!NOTE] `cpu.percentCPUUsage` and `cpu.idleWakeupsPerSecond` are averages over
1161
+ * the time since the last call to `app.getAppMetrics()`, and each call starts a
1162
+ * new measurement interval for every process at once. Other code in the main
1163
+ * process, including dependencies, shares those intervals. See `CPUUsage` for more
1164
+ * details.
1159
1165
  */
1160
1166
  getAppMetrics(): ProcessMetric[];
1161
1167
  /**
@@ -7396,12 +7402,14 @@ declare namespace Electron {
7396
7402
  */
7397
7403
  cumulativeCPUUsage?: number;
7398
7404
  /**
7399
- * The number of average idle CPU wakeups per second since the last call to
7400
- * getCPUUsage. First call returns 0. Will always return 0 on Windows.
7405
+ * The number of average idle CPU wakeups per second since the last call to the API
7406
+ * that returned this object. First call returns 0. Will always return 0 on
7407
+ * Windows.
7401
7408
  */
7402
7409
  idleWakeupsPerSecond: number;
7403
7410
  /**
7404
- * Percentage of CPU used since the last call to getCPUUsage. First call returns 0.
7411
+ * Percentage of CPU used since the last call to the API that returned this object.
7412
+ * First call returns 0.
7405
7413
  */
7406
7414
  percentCPUUsage: number;
7407
7415
  }
@@ -11378,7 +11386,8 @@ declare namespace Electron {
11378
11386
  // Docs: https://electronjs.org/docs/api/structures/process-metric
11379
11387
 
11380
11388
  /**
11381
- * CPU usage of the process.
11389
+ * CPU usage of the process. Its `percentCPUUsage` and `idleWakeupsPerSecond` are
11390
+ * averages over the time since the previous call to the API returning this object.
11382
11391
  */
11383
11392
  cpu: CPUUsage;
11384
11393
  /**
@@ -27082,6 +27091,14 @@ declare namespace NodeJS {
27082
27091
  * Kilobytes.
27083
27092
  */
27084
27093
  getBlinkMemoryInfo(): Electron.BlinkMemoryInfo;
27094
+ /**
27095
+ * CPU usage of the process this is called in.
27096
+ *
27097
+ * > [!NOTE] `percentCPUUsage` and `idleWakeupsPerSecond` are averages over the
27098
+ * time since the previous call to `process.getCPUUsage()` in this process, and
27099
+ * each call starts a new measurement interval. Every caller in the process shares
27100
+ * that interval. See `CPUUsage` for details.
27101
+ */
27085
27102
  getCPUUsage(): Electron.CPUUsage;
27086
27103
  /**
27087
27104
  * The number of milliseconds since epoch, or `null` if the information is
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "44.1.1",
3
- "extractedAt": "2026-09-01T19:11:28.083Z"
2
+ "electronVersion": "44.2.0",
3
+ "extractedAt": "2026-09-04T03:24:56.380Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "44.1.1",
3
+ "version": "44.2.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",