electron-types 42.4.0 → 42.5.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 +3 -3
- package/dist/electron.d.ts +29 -2
- package/dist/version.json +2 -2
- package/package.json +1 -1
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.
|
|
18
|
+
npm install -D electron-types@42.5.0
|
|
19
19
|
# or
|
|
20
|
-
yarn add -D electron-types@42.
|
|
20
|
+
yarn add -D electron-types@42.5.0
|
|
21
21
|
# or
|
|
22
|
-
pnpm add -D electron-types@42.
|
|
22
|
+
pnpm add -D electron-types@42.5.0
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 42.
|
|
1
|
+
// Type definitions for Electron 42.5.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
|
|
@@ -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:
|
|
@@ -7101,6 +7117,8 @@ declare namespace Electron {
|
|
|
7101
7117
|
* * Click on one of the `M` symbols
|
|
7102
7118
|
* * Click on a `☰` triple bar icon (e.g., in the `malloc` column)
|
|
7103
7119
|
*
|
|
7120
|
+
* [Image: Screenshot showing how to view a heapdump in Chromium's tracing view]
|
|
7121
|
+
*
|
|
7104
7122
|
* @experimental
|
|
7105
7123
|
*/
|
|
7106
7124
|
enableHeapProfiling(options?: EnableHeapProfilingOptions): Promise<void>;
|
|
@@ -11829,7 +11847,12 @@ declare namespace Electron {
|
|
|
11829
11847
|
*/
|
|
11830
11848
|
getSelectedStorageBackend(): ('basic_text' | 'gnome_libsecret' | 'kwallet' | 'kwallet5' | 'kwallet6' | 'unknown');
|
|
11831
11849
|
/**
|
|
11832
|
-
*
|
|
11850
|
+
* Resolves with whether encryption is available for asynchronous safeStorage
|
|
11851
|
+
* operations.
|
|
11852
|
+
*
|
|
11853
|
+
* The asynchronous encryptor is initialized lazily the first time this method,
|
|
11854
|
+
* `encryptStringAsync`, or `decryptStringAsync` is called after the app is ready.
|
|
11855
|
+
* The returned promise resolves once initialization completes.
|
|
11833
11856
|
*/
|
|
11834
11857
|
isAsyncEncryptionAvailable(): Promise<boolean>;
|
|
11835
11858
|
/**
|
|
@@ -17723,7 +17746,11 @@ declare namespace Electron {
|
|
|
17723
17746
|
*
|
|
17724
17747
|
* Before:
|
|
17725
17748
|
*
|
|
17749
|
+
* [Image: Image Before Text Selection Adjustment]
|
|
17750
|
+
*
|
|
17726
17751
|
* After:
|
|
17752
|
+
*
|
|
17753
|
+
* [Image: Image After Text Selection Adjustment]
|
|
17727
17754
|
*/
|
|
17728
17755
|
adjustSelection(options: AdjustSelectionOptions): void;
|
|
17729
17756
|
/**
|
package/dist/version.json
CHANGED