electron-types 42.7.1 → 42.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@42.7.1
17
+ npm install -D electron-types@42.8.0
18
18
  # or
19
- yarn add -D electron-types@42.7.1
19
+ yarn add -D electron-types@42.8.0
20
20
  # or
21
- pnpm add -D electron-types@42.7.1
21
+ pnpm add -D electron-types@42.8.0
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 42.7.1
1
+ // Type definitions for Electron 42.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
@@ -17086,23 +17086,23 @@ declare namespace Electron {
17086
17086
  * The usage is the same with the `login` event of `app`.
17087
17087
  */
17088
17088
  on(event: 'login', listener: (event: Event,
17089
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17089
+ authenticationResponseDetails: AuthenticationResponseDetails,
17090
17090
  authInfo: AuthInfo,
17091
17091
  callback: (username?: string, password?: string) => void) => void): this;
17092
17092
  off(event: 'login', listener: (event: Event,
17093
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17093
+ authenticationResponseDetails: AuthenticationResponseDetails,
17094
17094
  authInfo: AuthInfo,
17095
17095
  callback: (username?: string, password?: string) => void) => void): this;
17096
17096
  once(event: 'login', listener: (event: Event,
17097
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17097
+ authenticationResponseDetails: AuthenticationResponseDetails,
17098
17098
  authInfo: AuthInfo,
17099
17099
  callback: (username?: string, password?: string) => void) => void): this;
17100
17100
  addListener(event: 'login', listener: (event: Event,
17101
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17101
+ authenticationResponseDetails: AuthenticationResponseDetails,
17102
17102
  authInfo: AuthInfo,
17103
17103
  callback: (username?: string, password?: string) => void) => void): this;
17104
17104
  removeListener(event: 'login', listener: (event: Event,
17105
- authenticationResponseDetails: LoginAuthenticationResponseDetails,
17105
+ authenticationResponseDetails: AuthenticationResponseDetails,
17106
17106
  authInfo: AuthInfo,
17107
17107
  callback: (username?: string, password?: string) => void) => void): this;
17108
17108
  /**
@@ -20381,6 +20381,18 @@ declare namespace Electron {
20381
20381
  interface AuthenticationResponseDetails {
20382
20382
  url: string;
20383
20383
  pid: number;
20384
+ /**
20385
+ * Indicates whether the request is for a navigation.
20386
+ */
20387
+ isRequestForNavigation: boolean;
20388
+ /**
20389
+ * Indicates whether this is the first authentication attempt.
20390
+ */
20391
+ firstAuthAttempt: boolean;
20392
+ /**
20393
+ * The headers returned in the response.
20394
+ */
20395
+ responseHeaders?: Record<string, (string) | (string[])>;
20384
20396
  }
20385
20397
 
20386
20398
  interface AuthInfo {
@@ -21914,10 +21926,6 @@ declare namespace Electron {
21914
21926
  baseURLForDataURL?: string;
21915
21927
  }
21916
21928
 
21917
- interface LoginAuthenticationResponseDetails {
21918
- url: string;
21919
- }
21920
-
21921
21929
  interface LoginItemSettings {
21922
21930
  /**
21923
21931
  * `true` if the app is set to open at login.
@@ -23583,6 +23591,15 @@ declare namespace Electron {
23583
23591
  * The total amount of memory not being used by applications or disk cache.
23584
23592
  */
23585
23593
  free: number;
23594
+ /**
23595
+ * The kernel's estimate of the amount of memory available for allocation without
23596
+ * swapping, from `/proc/meminfo` `MemAvailable`. Use this as the memory pressure
23597
+ * signal on Linux; `free` there is `MemFree`, which excludes page cache and other
23598
+ * reclaimable memory.
23599
+ *
23600
+ * @platform linux
23601
+ */
23602
+ available: number;
23586
23603
  /**
23587
23604
  * The amount of memory that currently has been paged out to storage. Includes
23588
23605
  * memory for file caches, network buffers, and other system services.
@@ -24929,7 +24946,6 @@ declare namespace Electron {
24929
24946
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
24930
24947
  type LoadFileOptions = Electron.LoadFileOptions;
24931
24948
  type LoadURLOptions = Electron.LoadURLOptions;
24932
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
24933
24949
  type LoginItemSettings = Electron.LoginItemSettings;
24934
24950
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
24935
24951
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -25337,7 +25353,6 @@ declare namespace Electron {
25337
25353
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
25338
25354
  type LoadFileOptions = Electron.LoadFileOptions;
25339
25355
  type LoadURLOptions = Electron.LoadURLOptions;
25340
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
25341
25356
  type LoginItemSettings = Electron.LoginItemSettings;
25342
25357
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25343
25358
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -25672,7 +25687,6 @@ declare namespace Electron {
25672
25687
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
25673
25688
  type LoadFileOptions = Electron.LoadFileOptions;
25674
25689
  type LoadURLOptions = Electron.LoadURLOptions;
25675
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
25676
25690
  type LoginItemSettings = Electron.LoginItemSettings;
25677
25691
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
25678
25692
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -26006,7 +26020,6 @@ declare namespace Electron {
26006
26020
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
26007
26021
  type LoadFileOptions = Electron.LoadFileOptions;
26008
26022
  type LoadURLOptions = Electron.LoadURLOptions;
26009
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
26010
26023
  type LoginItemSettings = Electron.LoginItemSettings;
26011
26024
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26012
26025
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -26435,7 +26448,6 @@ declare namespace Electron {
26435
26448
  type LoadExtensionOptions = Electron.LoadExtensionOptions;
26436
26449
  type LoadFileOptions = Electron.LoadFileOptions;
26437
26450
  type LoadURLOptions = Electron.LoadURLOptions;
26438
- type LoginAuthenticationResponseDetails = Electron.LoginAuthenticationResponseDetails;
26439
26451
  type LoginItemSettings = Electron.LoginItemSettings;
26440
26452
  type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
26441
26453
  type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
@@ -26830,6 +26842,10 @@ declare namespace NodeJS {
26830
26842
  * to the system.
26831
26843
  * * `free` Integer - The total amount of memory not being used by applications or
26832
26844
  * disk cache.
26845
+ * * `available` Integer _Linux_ - The kernel's estimate of the amount of memory
26846
+ * available for allocation without swapping, from `/proc/meminfo` `MemAvailable`.
26847
+ * Use this as the memory pressure signal on Linux; `free` there is `MemFree`,
26848
+ * which excludes page cache and other reclaimable memory.
26833
26849
  * * `fileBacked` Integer _macOS_ - The amount of memory that currently has been
26834
26850
  * paged out to storage. Includes memory for file caches, network buffers, and
26835
26851
  * other system services.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "42.7.1",
3
- "extractedAt": "2026-07-21T19:42:54.923Z"
2
+ "electronVersion": "42.8.0",
3
+ "extractedAt": "2026-07-28T19:43:56.815Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "42.7.1",
3
+ "version": "42.8.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",