electron-types 41.7.2 → 41.9.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
@@ -15,11 +15,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
15
15
  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)):
16
16
 
17
17
  ```bash
18
- npm install -D electron-types@41.7.2
18
+ npm install -D electron-types@41.9.0
19
19
  # or
20
- yarn add -D electron-types@41.7.2
20
+ yarn add -D electron-types@41.9.0
21
21
  # or
22
- pnpm add -D electron-types@41.7.2
22
+ pnpm add -D electron-types@41.9.0
23
23
  ```
24
24
 
25
25
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 41.7.2
1
+ // Type definitions for Electron 41.9.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
@@ -1669,6 +1669,22 @@ declare namespace Electron {
1669
1669
  * for `hostname`.
1670
1670
  */
1671
1671
  setClientCertRequestPasswordHandler(handler: (clientCertRequestParams: ClientCertRequestParams) => Promise<string>): void;
1672
+ /**
1673
+ * Sets the `.desktop` filename on Linux. This should match the base filename of
1674
+ * the app's installed `.desktop` file. The `.desktop` suffix is optional.
1675
+ *
1676
+ * This value is used to determine the default XDG application ID on Wayland and
1677
+ * `WM_CLASS` on X11. If it is not set, Electron will attempt to infer a name, but
1678
+ * it may not match the packaged app's actual `.desktop` file. This could result in
1679
+ * the app showing a generic icon or failing to respond to global keyboard
1680
+ * shortcuts.
1681
+ *
1682
+ * This API must be called before the `ready` event. The value can also be set
1683
+ * using `desktopName` in `package.json`.
1684
+ *
1685
+ * @platform linux
1686
+ */
1687
+ setDesktopName(name: string): void;
1672
1688
  /**
1673
1689
  * Sets or removes a custom Jump List for the application, and returns one of the
1674
1690
  * following strings:
@@ -7058,6 +7074,8 @@ declare namespace Electron {
7058
7074
  * * Click on one of the `M` symbols
7059
7075
  * * Click on a `☰` triple bar icon (e.g., in the `malloc` column)
7060
7076
  *
7077
+ * [Image: Screenshot showing how to view a heapdump in Chromium]
7078
+ *
7061
7079
  * @experimental
7062
7080
  */
7063
7081
  enableHeapProfiling(options?: EnableHeapProfilingOptions): Promise<void>;
@@ -17521,7 +17539,11 @@ declare namespace Electron {
17521
17539
  *
17522
17540
  * Before:
17523
17541
  *
17542
+ * [Image: Image Before Text Selection Adjustment]
17543
+ *
17524
17544
  * After:
17545
+ *
17546
+ * [Image: Image After Text Selection Adjustment]
17525
17547
  */
17526
17548
  adjustSelection(options: AdjustSelectionOptions): void;
17527
17549
  /**
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "41.7.2",
3
- "extractedAt": "2026-06-10T01:16:52.594Z"
2
+ "electronVersion": "41.9.0",
3
+ "extractedAt": "2026-06-24T01:08:16.321Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "41.7.2",
3
+ "version": "41.9.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",