electron-types 40.5.0 → 40.6.1

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
@@ -11,11 +11,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
11
11
  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)):
12
12
 
13
13
  ```bash
14
- npm install -D electron-types@40.5.0
14
+ npm install -D electron-types@40.6.1
15
15
  # or
16
- yarn add -D electron-types@40.5.0
16
+ yarn add -D electron-types@40.6.1
17
17
  # or
18
- pnpm add -D electron-types@40.5.0
18
+ pnpm add -D electron-types@40.6.1
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 40.5.0
1
+ // Type definitions for Electron 40.6.1
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
@@ -517,7 +517,10 @@ declare namespace Electron {
517
517
  callback: (username?: string, password?: string) => void) => void): this;
518
518
  /**
519
519
  * Emitted when the user clicks the native macOS new tab button. The new tab button
520
- * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`
520
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
521
+ *
522
+ * You must create a window in this handler in order for macOS tabbing to work as
523
+ * expected.
521
524
  *
522
525
  * @platform darwin
523
526
  */
@@ -2212,7 +2215,11 @@ declare namespace Electron {
2212
2215
  */
2213
2216
  removeListener(event: 'moved', listener: () => void): this;
2214
2217
  /**
2215
- * Emitted when the native new tab button is clicked.
2218
+ * Emitted when the user clicks the native macOS new tab button. The new tab button
2219
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
2220
+ *
2221
+ * You must create a window in this handler in order for macOS tabbing to work as
2222
+ * expected.
2216
2223
  *
2217
2224
  * @platform darwin
2218
2225
  */
@@ -4417,7 +4424,11 @@ declare namespace Electron {
4417
4424
  */
4418
4425
  removeListener(event: 'moved', listener: () => void): this;
4419
4426
  /**
4420
- * Emitted when the native new tab button is clicked.
4427
+ * Emitted when the user clicks the native macOS new tab button. The new tab button
4428
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
4429
+ *
4430
+ * You must create a window in this handler in order for macOS tabbing to work as
4431
+ * expected.
4421
4432
  *
4422
4433
  * @platform darwin
4423
4434
  */
@@ -4439,7 +4450,11 @@ declare namespace Electron {
4439
4450
  */
4440
4451
  removeListener(event: 'new-window-for-tab', listener: () => void): this;
4441
4452
  /**
4442
- * Emitted when the native new tab button is clicked.
4453
+ * Emitted when the user clicks the native macOS new tab button. The new tab button
4454
+ * is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
4455
+ *
4456
+ * You must create a window in this handler in order for macOS tabbing to work as
4457
+ * expected.
4443
4458
  *
4444
4459
  * @platform darwin
4445
4460
  */
@@ -18678,6 +18693,10 @@ declare namespace Electron {
18678
18693
  * Enables Chromium's experimental features. Default is `false`.
18679
18694
  */
18680
18695
  experimentalFeatures?: boolean;
18696
+ /**
18697
+ * Whether to focus the WebContents when navigating. Default is `true`.
18698
+ */
18699
+ focusOnNavigation?: boolean;
18681
18700
  /**
18682
18701
  * Specifies how to run image animations (E.g. GIFs). Can be `animate`,
18683
18702
  * `animateOnce` or `noAnimation`. Default is `animate`.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "40.5.0",
3
- "extractedAt": "2026-02-19T06:32:02.272Z"
2
+ "electronVersion": "40.6.1",
3
+ "extractedAt": "2026-02-25T00:49:58.710Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "40.5.0",
3
+ "version": "40.6.1",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",