electron-types 42.0.1 → 42.2.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
@@ -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@42.0.1
18
+ npm install -D electron-types@42.2.0
19
19
  # or
20
- yarn add -D electron-types@42.0.1
20
+ yarn add -D electron-types@42.2.0
21
21
  # or
22
- pnpm add -D electron-types@42.0.1
22
+ pnpm add -D electron-types@42.2.0
23
23
  ```
24
24
 
25
25
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 42.0.1
1
+ // Type definitions for Electron 42.2.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
@@ -10319,7 +10319,7 @@ declare namespace Electron {
10319
10319
  * Emitted when an error is encountered while creating and showing the native
10320
10320
  * notification.
10321
10321
  *
10322
- * @platform win32
10322
+ * @platform darwin,win32
10323
10323
  */
10324
10324
  on(event: 'failed', listener: (event: Event,
10325
10325
  /**
@@ -10327,7 +10327,7 @@ declare namespace Electron {
10327
10327
  */
10328
10328
  error: string) => void): this;
10329
10329
  /**
10330
- * @platform win32
10330
+ * @platform darwin,win32
10331
10331
  */
10332
10332
  off(event: 'failed', listener: (event: Event,
10333
10333
  /**
@@ -10335,7 +10335,7 @@ declare namespace Electron {
10335
10335
  */
10336
10336
  error: string) => void): this;
10337
10337
  /**
10338
- * @platform win32
10338
+ * @platform darwin,win32
10339
10339
  */
10340
10340
  once(event: 'failed', listener: (event: Event,
10341
10341
  /**
@@ -10343,7 +10343,7 @@ declare namespace Electron {
10343
10343
  */
10344
10344
  error: string) => void): this;
10345
10345
  /**
10346
- * @platform win32
10346
+ * @platform darwin,win32
10347
10347
  */
10348
10348
  addListener(event: 'failed', listener: (event: Event,
10349
10349
  /**
@@ -10351,7 +10351,7 @@ declare namespace Electron {
10351
10351
  */
10352
10352
  error: string) => void): this;
10353
10353
  /**
10354
- * @platform win32
10354
+ * @platform darwin,win32
10355
10355
  */
10356
10356
  removeListener(event: 'failed', listener: (event: Event,
10357
10357
  /**
@@ -24498,6 +24498,14 @@ declare namespace Electron {
24498
24498
  * `<TEAM_ID>.<BUNDLE_ID>.webauthn`.
24499
24499
  */
24500
24500
  keychainAccessGroup: string;
24501
+ /**
24502
+ * Customizes the reason text shown in the macOS Touch ID prompt. macOS renders the
24503
+ * prompt as `"<App Name>" is trying to <promptReason>`, so the value should be a
24504
+ * lowercase sentence fragment. An optional `$1` placeholder is replaced with the
24505
+ * relying party ID (e.g. `example.com`) of the request being authenticated.
24506
+ * Defaults to `verify your identity on $1`.
24507
+ */
24508
+ promptReason?: string;
24501
24509
  }
24502
24510
 
24503
24511
  interface Video {
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "42.0.1",
3
- "extractedAt": "2026-05-09T01:03:50.343Z"
2
+ "electronVersion": "42.2.0",
3
+ "extractedAt": "2026-05-20T07:28:59.495Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "42.0.1",
3
+ "version": "42.2.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",