electron-types 42.3.3 → 42.4.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
@@ -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@42.3.3
18
+ npm install -D electron-types@42.4.1
19
19
  # or
20
- yarn add -D electron-types@42.3.3
20
+ yarn add -D electron-types@42.4.1
21
21
  # or
22
- pnpm add -D electron-types@42.3.3
22
+ pnpm add -D electron-types@42.4.1
23
23
  ```
24
24
 
25
25
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 42.3.3
1
+ // Type definitions for Electron 42.4.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
@@ -1700,6 +1700,22 @@ declare namespace Electron {
1700
1700
  * for `hostname`.
1701
1701
  */
1702
1702
  setClientCertRequestPasswordHandler(handler: (clientCertRequestParams: ClientCertRequestParams) => Promise<string>): void;
1703
+ /**
1704
+ * Sets the `.desktop` filename on Linux. This should match the base filename of
1705
+ * the app's installed `.desktop` file. The `.desktop` suffix is optional.
1706
+ *
1707
+ * This value is used to determine the default XDG application ID on Wayland and
1708
+ * `WM_CLASS` on X11. If it is not set, Electron will attempt to infer a name, but
1709
+ * it may not match the packaged app's actual `.desktop` file. This could result in
1710
+ * the app showing a generic icon or failing to respond to global keyboard
1711
+ * shortcuts.
1712
+ *
1713
+ * This API must be called before the `ready` event. The value can also be set
1714
+ * using `desktopName` in `package.json`.
1715
+ *
1716
+ * @platform linux
1717
+ */
1718
+ setDesktopName(name: string): void;
1703
1719
  /**
1704
1720
  * Sets or removes a custom Jump List for the application, and returns one of the
1705
1721
  * following strings:
@@ -11829,7 +11845,12 @@ declare namespace Electron {
11829
11845
  */
11830
11846
  getSelectedStorageBackend(): ('basic_text' | 'gnome_libsecret' | 'kwallet' | 'kwallet5' | 'kwallet6' | 'unknown');
11831
11847
  /**
11832
- * Whether encryption is available for asynchronous safeStorage operations.
11848
+ * Resolves with whether encryption is available for asynchronous safeStorage
11849
+ * operations.
11850
+ *
11851
+ * The asynchronous encryptor is initialized lazily the first time this method,
11852
+ * `encryptStringAsync`, or `decryptStringAsync` is called after the app is ready.
11853
+ * The returned promise resolves once initialization completes.
11833
11854
  */
11834
11855
  isAsyncEncryptionAvailable(): Promise<boolean>;
11835
11856
  /**
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "42.3.3",
3
- "extractedAt": "2026-06-04T01:26:10.584Z"
2
+ "electronVersion": "42.4.1",
3
+ "extractedAt": "2026-06-16T19:21:16.224Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "42.3.3",
3
+ "version": "42.4.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",