electron-types 40.2.1 → 40.3.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
@@ -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@40.2.1
14
+ npm install -D electron-types@40.3.0
15
15
  # or
16
- yarn add -D electron-types@40.2.1
16
+ yarn add -D electron-types@40.3.0
17
17
  # or
18
- pnpm add -D electron-types@40.2.1
18
+ pnpm add -D electron-types@40.3.0
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 40.2.1
1
+ // Type definitions for Electron 40.3.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
@@ -9342,9 +9342,9 @@ declare namespace Electron {
9342
9342
  */
9343
9343
  constructor(options: MenuItemConstructorOptions);
9344
9344
  /**
9345
- * An `Accelerator` (optional) indicating the item's accelerator, if set.
9345
+ * An `Accelerator | null` indicating the item's accelerator, if set.
9346
9346
  */
9347
- accelerator?: Accelerator;
9347
+ accelerator: (Accelerator) | (null);
9348
9348
  /**
9349
9349
  * A `boolean` indicating whether the item is checked. This property can be
9350
9350
  * dynamically changed.
@@ -17836,7 +17836,8 @@ declare namespace Electron {
17836
17836
  setDevToolsWebContents(devToolsWebContents: WebContents): void;
17837
17837
  /**
17838
17838
  * If _offscreen rendering_ is enabled sets the frame rate to the specified number.
17839
- * Only values between 1 and 240 are accepted.
17839
+ * When `webPreferences.offscreen.useSharedTexture` is `false` only values between
17840
+ * 1 and 240 are accepted.
17840
17841
  */
17841
17842
  setFrameRate(fps: number): void;
17842
17843
  /**
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "40.2.1",
3
- "extractedAt": "2026-02-06T06:27:38.457Z"
2
+ "electronVersion": "40.3.0",
3
+ "extractedAt": "2026-02-11T06:34:39.403Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "40.2.1",
3
+ "version": "40.3.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",