electron-types 43.0.0-beta.2 → 43.0.0-beta.4
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 +17 -1
- 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@43.0.0-beta.
|
|
18
|
+
npm install -D electron-types@43.0.0-beta.4
|
|
19
19
|
# or
|
|
20
|
-
yarn add -D electron-types@43.0.0-beta.
|
|
20
|
+
yarn add -D electron-types@43.0.0-beta.4
|
|
21
21
|
# or
|
|
22
|
-
pnpm add -D electron-types@43.0.0-beta.
|
|
22
|
+
pnpm add -D electron-types@43.0.0-beta.4
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.0.0-beta.
|
|
1
|
+
// Type definitions for Electron 43.0.0-beta.4
|
|
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:
|
package/dist/version.json
CHANGED