electron-types 43.7.9 → 43.7.11
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 +20 -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.7.
|
|
17
|
+
npm install -D electron-types@43.7.11
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@43.7.
|
|
19
|
+
yarn add -D electron-types@43.7.11
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@43.7.
|
|
21
|
+
pnpm add -D electron-types@43.7.11
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.7.
|
|
1
|
+
// Type definitions for Electron 43.7.11
|
|
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
|
|
@@ -15933,26 +15933,34 @@ declare namespace Electron {
|
|
|
15933
15933
|
/**
|
|
15934
15934
|
* Emitted when the utility process encounters an HTTP 401 or 407 authentication
|
|
15935
15935
|
* challenge, if the process was created with both
|
|
15936
|
-
* `respondToAuthRequestsFromMainProcess: true` and a `session` option.
|
|
15937
|
-
*
|
|
15938
|
-
*
|
|
15936
|
+
* `respondToAuthRequestsFromMainProcess: true` and a `session` option.
|
|
15937
|
+
*
|
|
15938
|
+
* The default behavior is to cancel the authentication. To override this you
|
|
15939
|
+
* should prevent the default behavior with `event.preventDefault()` and call
|
|
15940
|
+
* `callback(username, password)` with the credentials. Calling `callback` without
|
|
15941
|
+
* arguments will cancel the request.
|
|
15939
15942
|
*
|
|
15940
15943
|
* This behaves the same as the `login` event on `app` but is scoped to the
|
|
15941
15944
|
* individual utility process instance.
|
|
15942
15945
|
*/
|
|
15943
|
-
on(event: 'login', listener: (
|
|
15946
|
+
on(event: 'login', listener: (event: Event,
|
|
15947
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15944
15948
|
authInfo: AuthInfo,
|
|
15945
15949
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15946
|
-
off(event: 'login', listener: (
|
|
15950
|
+
off(event: 'login', listener: (event: Event,
|
|
15951
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15947
15952
|
authInfo: AuthInfo,
|
|
15948
15953
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15949
|
-
once(event: 'login', listener: (
|
|
15954
|
+
once(event: 'login', listener: (event: Event,
|
|
15955
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15950
15956
|
authInfo: AuthInfo,
|
|
15951
15957
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15952
|
-
addListener(event: 'login', listener: (
|
|
15958
|
+
addListener(event: 'login', listener: (event: Event,
|
|
15959
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15953
15960
|
authInfo: AuthInfo,
|
|
15954
15961
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15955
|
-
removeListener(event: 'login', listener: (
|
|
15962
|
+
removeListener(event: 'login', listener: (event: Event,
|
|
15963
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15956
15964
|
authInfo: AuthInfo,
|
|
15957
15965
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
15958
15966
|
/**
|
|
@@ -21096,10 +21104,10 @@ declare namespace Electron {
|
|
|
21096
21104
|
|
|
21097
21105
|
interface Config {
|
|
21098
21106
|
/**
|
|
21099
|
-
* Can be `tls1
|
|
21100
|
-
*
|
|
21107
|
+
* Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
|
|
21108
|
+
* remote servers. Defaults to `tls1.2`.
|
|
21101
21109
|
*/
|
|
21102
|
-
minVersion?: ('tls1
|
|
21110
|
+
minVersion?: ('tls1.2' | 'tls1.3');
|
|
21103
21111
|
/**
|
|
21104
21112
|
* Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
|
|
21105
21113
|
* remote servers. Defaults to `tls1.3`.
|
package/dist/version.json
CHANGED