electron-types 44.7.1 → 44.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 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@44.7.1
17
+ npm install -D electron-types@44.8.0
18
18
  # or
19
- yarn add -D electron-types@44.7.1
19
+ yarn add -D electron-types@44.8.0
20
20
  # or
21
- pnpm add -D electron-types@44.7.1
21
+ pnpm add -D electron-types@44.8.0
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 44.7.1
1
+ // Type definitions for Electron 44.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
@@ -10432,9 +10432,6 @@ declare namespace Electron {
10432
10432
 
10433
10433
  // Docs: https://electronjs.org/docs/api/notification
10434
10434
 
10435
- /**
10436
- * @platform darwin,win32
10437
- */
10438
10435
  on(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10439
10436
  /**
10440
10437
  * @deprecated
@@ -10445,9 +10442,6 @@ declare namespace Electron {
10445
10442
  * @platform win32
10446
10443
  */
10447
10444
  selectionIndex: number) => void): this;
10448
- /**
10449
- * @platform darwin,win32
10450
- */
10451
10445
  off(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10452
10446
  /**
10453
10447
  * @deprecated
@@ -10458,9 +10452,6 @@ declare namespace Electron {
10458
10452
  * @platform win32
10459
10453
  */
10460
10454
  selectionIndex: number) => void): this;
10461
- /**
10462
- * @platform darwin,win32
10463
- */
10464
10455
  once(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10465
10456
  /**
10466
10457
  * @deprecated
@@ -10471,9 +10462,6 @@ declare namespace Electron {
10471
10462
  * @platform win32
10472
10463
  */
10473
10464
  selectionIndex: number) => void): this;
10474
- /**
10475
- * @platform darwin,win32
10476
- */
10477
10465
  addListener(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10478
10466
  /**
10479
10467
  * @deprecated
@@ -10484,9 +10472,6 @@ declare namespace Electron {
10484
10472
  * @platform win32
10485
10473
  */
10486
10474
  selectionIndex: number) => void): this;
10487
- /**
10488
- * @platform darwin,win32
10489
- */
10490
10475
  removeListener(event: 'action', listener: (details: Event<NotificationActionEventParams>,
10491
10476
  /**
10492
10477
  * @deprecated
@@ -16064,26 +16049,34 @@ declare namespace Electron {
16064
16049
  /**
16065
16050
  * Emitted when the utility process encounters an HTTP 401 or 407 authentication
16066
16051
  * challenge, if the process was created with both
16067
- * `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
16068
- * `callback` should be called with credentials to respond to the challenge.
16069
- * Calling `callback` without arguments will cancel the request.
16052
+ * `respondToAuthRequestsFromMainProcess: true` and a `session` option.
16053
+ *
16054
+ * The default behavior is to cancel the authentication. To override this you
16055
+ * should prevent the default behavior with `event.preventDefault()` and call
16056
+ * `callback(username, password)` with the credentials. Calling `callback` without
16057
+ * arguments will cancel the request.
16070
16058
  *
16071
16059
  * This behaves the same as the `login` event on `app` but is scoped to the
16072
16060
  * individual utility process instance.
16073
16061
  */
16074
- on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16062
+ on(event: 'login', listener: (event: Event,
16063
+ authenticationResponseDetails: AuthenticationResponseDetails,
16075
16064
  authInfo: AuthInfo,
16076
16065
  callback: (username?: string, password?: string) => void) => void): this;
16077
- off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16066
+ off(event: 'login', listener: (event: Event,
16067
+ authenticationResponseDetails: AuthenticationResponseDetails,
16078
16068
  authInfo: AuthInfo,
16079
16069
  callback: (username?: string, password?: string) => void) => void): this;
16080
- once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16070
+ once(event: 'login', listener: (event: Event,
16071
+ authenticationResponseDetails: AuthenticationResponseDetails,
16081
16072
  authInfo: AuthInfo,
16082
16073
  callback: (username?: string, password?: string) => void) => void): this;
16083
- addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16074
+ addListener(event: 'login', listener: (event: Event,
16075
+ authenticationResponseDetails: AuthenticationResponseDetails,
16084
16076
  authInfo: AuthInfo,
16085
16077
  callback: (username?: string, password?: string) => void) => void): this;
16086
- removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
16078
+ removeListener(event: 'login', listener: (event: Event,
16079
+ authenticationResponseDetails: AuthenticationResponseDetails,
16087
16080
  authInfo: AuthInfo,
16088
16081
  callback: (username?: string, password?: string) => void) => void): this;
16089
16082
  /**
@@ -16339,6 +16332,9 @@ declare namespace Electron {
16339
16332
  mouse: MouseInputEvent) => void): this;
16340
16333
  /**
16341
16334
  * Emitted when the `WebContents` loses focus.
16335
+ *
16336
+ * The `blur` event is also emitted when switching between windows or apps for the
16337
+ * `WebContents` that has focus within its window.
16342
16338
  */
16343
16339
  on(event: 'blur', listener: () => void): this;
16344
16340
  off(event: 'blur', listener: () => void): this;
@@ -17352,14 +17348,8 @@ declare namespace Electron {
17352
17348
  /**
17353
17349
  * Emitted when the `WebContents` gains focus.
17354
17350
  *
17355
- * Note that on macOS, having focus means the `WebContents` is the first responder
17356
- * of window, so switching focus between windows would not trigger the `focus` and
17357
- * `blur` events of `WebContents`, as the first responder of each window is not
17358
- * changed.
17359
- *
17360
- * The `focus` and `blur` events of `WebContents` should only be used to detect
17361
- * focus change between different `WebContents` and `BrowserView` in the same
17362
- * window.
17351
+ * The `focus` event is also emitted when switching between windows or apps for the
17352
+ * `WebContents` that has focus within its window.
17363
17353
  */
17364
17354
  on(event: 'focus', listener: () => void): this;
17365
17355
  off(event: 'focus', listener: () => void): this;
@@ -21276,10 +21266,10 @@ declare namespace Electron {
21276
21266
 
21277
21267
  interface Config {
21278
21268
  /**
21279
- * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
21280
- * when connecting to remote servers. Defaults to `tls1`.
21269
+ * Can be `tls1.2` or `tls1.3`. The minimum SSL version to allow when connecting to
21270
+ * remote servers. Defaults to `tls1.2`.
21281
21271
  */
21282
- minVersion?: ('tls1' | 'tls1.1' | 'tls1.2' | 'tls1.3');
21272
+ minVersion?: ('tls1.2' | 'tls1.3');
21283
21273
  /**
21284
21274
  * Can be `tls1.2` or `tls1.3`. The maximum SSL version to allow when connecting to
21285
21275
  * remote servers. Defaults to `tls1.3`.
@@ -23007,8 +22997,6 @@ declare namespace Electron {
23007
22997
  /**
23008
22998
  * Actions to add to the notification. Please read the available actions and
23009
22999
  * limitations in the `NotificationAction` documentation.
23010
- *
23011
- * @platform darwin,win32
23012
23000
  */
23013
23001
  actions?: NotificationAction[];
23014
23002
  /**
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "44.7.1",
3
- "extractedAt": "2026-10-13T18:19:21.132Z"
2
+ "electronVersion": "44.8.0",
3
+ "extractedAt": "2026-10-16T03:15:35.553Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "44.7.1",
3
+ "version": "44.8.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",