electron-types 41.0.0-beta.8 → 41.0.1

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@41.0.0-beta.8
14
+ npm install -D electron-types@41.0.1
15
15
  # or
16
- yarn add -D electron-types@41.0.0-beta.8
16
+ yarn add -D electron-types@41.0.1
17
17
  # or
18
- pnpm add -D electron-types@41.0.0-beta.8
18
+ pnpm add -D electron-types@41.0.1
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 41.0.0-beta.8
1
+ // Type definitions for Electron 41.0.1
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
@@ -11665,6 +11665,8 @@ declare namespace Electron {
11665
11665
  /**
11666
11666
  * The current absolute position of the mouse pointer.
11667
11667
  *
11668
+ * Not supported on Wayland (Linux).
11669
+ *
11668
11670
  * > [!NOTE] The return value is a DIP point, not a screen physical point.
11669
11671
  */
11670
11672
  getCursorScreenPoint(): Point;
@@ -17568,6 +17570,14 @@ declare namespace Electron {
17568
17570
  * only valid for 10 seconds.
17569
17571
  */
17570
17572
  getMediaSourceId(requestWebContents: WebContents): string;
17573
+ /**
17574
+ * The Chrome DevTools Protocol TargetID associated with this WebContents. This is
17575
+ * the reverse of `webContents.fromDevToolsTargetId()`.
17576
+ *
17577
+ * > [!NOTE] This method creates a new DevTools agent for this WebContents if one
17578
+ * does not already exist.
17579
+ */
17580
+ getOrCreateDevToolsTargetId(): string;
17571
17581
  /**
17572
17582
  * The operating system `pid` of the associated renderer process.
17573
17583
  */
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "41.0.0-beta.8",
3
- "extractedAt": "2026-03-06T12:20:43.063Z"
2
+ "electronVersion": "41.0.1",
3
+ "extractedAt": "2026-03-13T00:46:36.885Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "41.0.0-beta.8",
3
+ "version": "41.0.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",