electron-types 39.5.0 → 39.5.2

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
@@ -11,11 +11,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
11
11
  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)):
12
12
 
13
13
  ```bash
14
- npm install -D electron-types@39.5.0
14
+ npm install -D electron-types@39.5.2
15
15
  # or
16
- yarn add -D electron-types@39.5.0
16
+ yarn add -D electron-types@39.5.2
17
17
  # or
18
- pnpm add -D electron-types@39.5.0
18
+ pnpm add -D electron-types@39.5.2
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 39.5.0
1
+ // Type definitions for Electron 39.5.2
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
@@ -2664,6 +2664,10 @@ declare namespace Electron {
2664
2664
  * height. For example, calling `win.setBounds({ x: 25, y: 20, width: 800, height:
2665
2665
  * 600 })` with a tray height of 38 means that `win.getBounds()` will return `{ x:
2666
2666
  * 25, y: 38, width: 800, height: 600 }`.
2667
+ *
2668
+ * > [!NOTE] On Wayland, this method will return `{ x: 0, y: 0, ... }` as
2669
+ * introspecting or programmatically changing the global window coordinates is
2670
+ * prohibited.
2667
2671
  */
2668
2672
  getBounds(): Rectangle;
2669
2673
  /**
@@ -2727,6 +2731,9 @@ declare namespace Electron {
2727
2731
  getParentWindow(): (BaseWindow) | (null);
2728
2732
  /**
2729
2733
  * Contains the window's current position.
2734
+ *
2735
+ * > [!NOTE] On Wayland, this method will return `[0, 0]` as introspecting or
2736
+ * programmatically changing the global window coordinates is prohibited.
2730
2737
  */
2731
2738
  getPosition(): number[];
2732
2739
  /**
@@ -5350,6 +5357,10 @@ declare namespace Electron {
5350
5357
  * height. For example, calling `win.setBounds({ x: 25, y: 20, width: 800, height:
5351
5358
  * 600 })` with a tray height of 38 means that `win.getBounds()` will return `{ x:
5352
5359
  * 25, y: 38, width: 800, height: 600 }`.
5360
+ *
5361
+ * > [!NOTE] On Wayland, this method will return `{ x: 0, y: 0, ... }` as
5362
+ * introspecting or programmatically changing the global window coordinates is
5363
+ * prohibited.
5353
5364
  */
5354
5365
  getBounds(): Rectangle;
5355
5366
  /**
@@ -5432,6 +5443,9 @@ declare namespace Electron {
5432
5443
  getParentWindow(): (BrowserWindow) | (null);
5433
5444
  /**
5434
5445
  * Contains the window's current position.
5446
+ *
5447
+ * > [!NOTE] On Wayland, this method will return `[0, 0]` as introspecting or
5448
+ * programmatically changing the global window coordinates is prohibited.
5435
5449
  */
5436
5450
  getPosition(): number[];
5437
5451
  /**
@@ -9351,9 +9365,9 @@ declare namespace Electron {
9351
9365
  */
9352
9366
  constructor(options: MenuItemConstructorOptions);
9353
9367
  /**
9354
- * An `Accelerator` (optional) indicating the item's accelerator, if set.
9368
+ * An `Accelerator | null` indicating the item's accelerator, if set.
9355
9369
  */
9356
- accelerator?: Accelerator;
9370
+ accelerator: (Accelerator) | (null);
9357
9371
  /**
9358
9372
  * A `boolean` indicating whether the item is checked. This property can be
9359
9373
  * dynamically changed.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "39.5.0",
3
- "extractedAt": "2026-02-03T00:48:05.901Z"
2
+ "electronVersion": "39.5.2",
3
+ "extractedAt": "2026-02-11T00:53:03.611Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "39.5.0",
3
+ "version": "39.5.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",