electron-types 40.0.0-alpha.6 → 40.0.0-alpha.8

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.
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 40.0.0-alpha.6
1
+ // Type definitions for Electron 40.0.0-alpha.8
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
@@ -3890,7 +3890,9 @@ declare namespace Electron {
3890
3890
  trafficLightPosition?: Point;
3891
3891
  /**
3892
3892
  * Makes the window transparent. Default is `false`. On Windows, does not work
3893
- * unless the window is frameless.
3893
+ * unless the window is frameless. When you add a `View` to a `BaseWindow`, you'll
3894
+ * need to call `view.setBackgroundColor` with a transparent background color on
3895
+ * that view to make its background transparent as well.
3894
3896
  */
3895
3897
  transparent?: boolean;
3896
3898
  /**
@@ -5654,6 +5656,9 @@ declare namespace Electron {
5654
5656
  /**
5655
5657
  * the promise will resolve when the page has finished loading (see
5656
5658
  * `did-finish-load`), and rejects if the page fails to load (see `did-fail-load`).
5659
+ * A noop rejection handler is already attached, which avoids unhandled rejection
5660
+ * errors. If the existing page has a beforeUnload handler, `did-fail-load` will be
5661
+ * called unless `will-prevent-unload` is handled.
5657
5662
  *
5658
5663
  * Same as `webContents.loadURL(url[, options])`.
5659
5664
  *
@@ -17619,7 +17624,8 @@ declare namespace Electron {
17619
17624
  * the promise will resolve when the page has finished loading (see
17620
17625
  * `did-finish-load`), and rejects if the page fails to load (see `did-fail-load`).
17621
17626
  * A noop rejection handler is already attached, which avoids unhandled rejection
17622
- * errors.
17627
+ * errors. If the existing page has a beforeUnload handler, `did-fail-load` will be
17628
+ * called unless `will-prevent-unload` is handled.
17623
17629
  *
17624
17630
  * Loads the `url` in the window. The `url` must contain the protocol prefix, e.g.
17625
17631
  * the `http://` or `file://`. If the load should bypass http cache then use the
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "40.0.0-alpha.6",
3
- "extractedAt": "2025-12-24T03:15:41.549Z"
2
+ "electronVersion": "40.0.0-alpha.8",
3
+ "extractedAt": "2025-12-24T03:15:30.412Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "40.0.0-alpha.6",
3
+ "version": "40.0.0-alpha.8",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",