electron-types 40.10.3 → 40.10.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@40.10.
|
|
18
|
+
npm install -D electron-types@40.10.4
|
|
19
19
|
# or
|
|
20
|
-
yarn add -D electron-types@40.10.
|
|
20
|
+
yarn add -D electron-types@40.10.4
|
|
21
21
|
# or
|
|
22
|
-
pnpm add -D electron-types@40.10.
|
|
22
|
+
pnpm add -D electron-types@40.10.4
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 40.10.
|
|
1
|
+
// Type definitions for Electron 40.10.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
|
|
@@ -1647,6 +1647,22 @@ declare namespace Electron {
|
|
|
1647
1647
|
* for `hostname`.
|
|
1648
1648
|
*/
|
|
1649
1649
|
setClientCertRequestPasswordHandler(handler: (clientCertRequestParams: ClientCertRequestParams) => Promise<string>): void;
|
|
1650
|
+
/**
|
|
1651
|
+
* Sets the `.desktop` filename on Linux. This should match the base filename of
|
|
1652
|
+
* the app's installed `.desktop` file. The `.desktop` suffix is optional.
|
|
1653
|
+
*
|
|
1654
|
+
* This value is used to determine the default XDG application ID on Wayland and
|
|
1655
|
+
* `WM_CLASS` on X11. If it is not set, Electron will attempt to infer a name, but
|
|
1656
|
+
* it may not match the packaged app's actual `.desktop` file. This could result in
|
|
1657
|
+
* the app showing a generic icon or failing to respond to global keyboard
|
|
1658
|
+
* shortcuts.
|
|
1659
|
+
*
|
|
1660
|
+
* This API must be called before the `ready` event. The value can also be set
|
|
1661
|
+
* using `desktopName` in `package.json`.
|
|
1662
|
+
*
|
|
1663
|
+
* @platform linux
|
|
1664
|
+
*/
|
|
1665
|
+
setDesktopName(name: string): void;
|
|
1650
1666
|
/**
|
|
1651
1667
|
* Sets or removes a custom Jump List for the application, and returns one of the
|
|
1652
1668
|
* following strings:
|
package/dist/version.json
CHANGED