electron-types 43.7.10 → 43.8.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 +24 -12
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
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)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@43.
|
|
17
|
+
npm install -D electron-types@43.8.0
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@43.
|
|
19
|
+
yarn add -D electron-types@43.8.0
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@43.
|
|
21
|
+
pnpm add -D electron-types@43.8.0
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.
|
|
1
|
+
// Type definitions for Electron 43.8.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
|
|
@@ -9553,6 +9553,10 @@ declare namespace Electron {
|
|
|
9553
9553
|
* Sets `menu` as the application menu on macOS. On Windows and Linux, the `menu`
|
|
9554
9554
|
* will be set as each window's top menu.
|
|
9555
9555
|
*
|
|
9556
|
+
* On Linux, the menu bar uses GTK theme colors when GTK is available. If GTK
|
|
9557
|
+
* cannot initialize, it uses Chromium's built-in light or dark menu colors,
|
|
9558
|
+
* following `nativeTheme.shouldUseDarkColors`.
|
|
9559
|
+
*
|
|
9556
9560
|
* Also on Windows and Linux, you can use a `&` in the top-level item name to
|
|
9557
9561
|
* indicate which letter should get a generated accelerator. For example, using
|
|
9558
9562
|
* `&File` for the file menu would result in a generated `Alt-F` accelerator that
|
|
@@ -15933,26 +15937,34 @@ declare namespace Electron {
|
|
|
15933
15937
|
/**
|
|
15934
15938
|
* Emitted when the utility process encounters an HTTP 401 or 407 authentication
|
|
15935
15939
|
* challenge, if the process was created with both
|
|
15936
|
-
* `respondToAuthRequestsFromMainProcess: true` and a `session` option.
|
|
15937
|
-
*
|
|
15938
|
-
*
|
|
15940
|
+
* `respondToAuthRequestsFromMainProcess: true` and a `session` option.
|
|
15941
|
+
*
|
|
15942
|
+
* The default behavior is to cancel the authentication. To override this you
|
|
15943
|
+
* should prevent the default behavior with `event.preventDefault()` and call
|
|
15944
|
+
* `callback(username, password)` with the credentials. Calling `callback` without
|
|
15945
|
+
* arguments will cancel the request.
|
|
15939
15946
|
*
|
|
15940
15947
|
* This behaves the same as the `login` event on `app` but is scoped to the
|
|
15941
15948
|
* individual utility process instance.
|
|
15942
15949
|
*/
|
|
15943
|
-
on(event: 'login', listener: (
|
|
15950
|
+
on(event: 'login', listener: (event: Event,
|
|
15951
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15944
15952
|
authInfo: AuthInfo,
|
|
15945
15953
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15946
|
-
off(event: 'login', listener: (
|
|
15954
|
+
off(event: 'login', listener: (event: Event,
|
|
15955
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15947
15956
|
authInfo: AuthInfo,
|
|
15948
15957
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15949
|
-
once(event: 'login', listener: (
|
|
15958
|
+
once(event: 'login', listener: (event: Event,
|
|
15959
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15950
15960
|
authInfo: AuthInfo,
|
|
15951
15961
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15952
|
-
addListener(event: 'login', listener: (
|
|
15962
|
+
addListener(event: 'login', listener: (event: Event,
|
|
15963
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15953
15964
|
authInfo: AuthInfo,
|
|
15954
15965
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15955
|
-
removeListener(event: 'login', listener: (
|
|
15966
|
+
removeListener(event: 'login', listener: (event: Event,
|
|
15967
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15956
15968
|
authInfo: AuthInfo,
|
|
15957
15969
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15958
15970
|
/**
|
|
@@ -21096,10 +21108,10 @@ declare namespace Electron {
|
|
|
21096
21108
|
|
|
21097
21109
|
interface Config {
|
|
21098
21110
|
/**
|
|
21099
|
-
* Can be `tls1
|
|
21100
|
-
*
|
|
21111
|
+
* Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
|
|
21112
|
+
* remote servers. Defaults to `tls1.2`.
|
|
21101
21113
|
*/
|
|
21102
|
-
minVersion?: ('tls1
|
|
21114
|
+
minVersion?: ('tls1.2' | 'tls1.3');
|
|
21103
21115
|
/**
|
|
21104
21116
|
* Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
|
|
21105
21117
|
* remote servers. Defaults to `tls1.3`.
|
package/dist/version.json
CHANGED