electron-types 46.0.0-alpha.6 → 46.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.
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@46.0.0-alpha.6
17
+ npm install -D electron-types@46.0.0-alpha.8
18
18
  # or
19
- yarn add -D electron-types@46.0.0-alpha.6
19
+ yarn add -D electron-types@46.0.0-alpha.8
20
20
  # or
21
- pnpm add -D electron-types@46.0.0-alpha.6
21
+ pnpm add -D electron-types@46.0.0-alpha.8
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 46.0.0-alpha.6
1
+ // Type definitions for Electron 46.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
@@ -4602,12 +4602,10 @@ declare namespace Electron {
4602
4602
  /**
4603
4603
  * The `bounds` of this BrowserView instance as `Object`.
4604
4604
  *
4605
- * @experimental
4606
4605
  * @deprecated
4607
4606
  */
4608
4607
  getBounds(): Rectangle;
4609
4608
  /**
4610
- * @experimental
4611
4609
  * @deprecated
4612
4610
  */
4613
4611
  setAutoResize(options: AutoResizeOptions): void;
@@ -4639,21 +4637,18 @@ declare namespace Electron {
4639
4637
  * > [!NOTE] Hex format with alpha takes `AARRGGBB` or `ARGB`, _not_ `RRGGBBAA` or
4640
4638
  * `RGB`.
4641
4639
  *
4642
- * @experimental
4643
4640
  * @deprecated
4644
4641
  */
4645
4642
  setBackgroundColor(color: string): void;
4646
4643
  /**
4647
4644
  * Resizes and moves the view to the supplied bounds relative to the window.
4648
4645
  *
4649
- * @experimental
4650
4646
  * @deprecated
4651
4647
  */
4652
4648
  setBounds(bounds: Rectangle): void;
4653
4649
  /**
4654
4650
  * A `WebContents` object owned by this view.
4655
4651
  *
4656
- * @experimental
4657
4652
  * @deprecated
4658
4653
  */
4659
4654
  webContents: WebContents;
@@ -5923,7 +5918,6 @@ declare namespace Electron {
5923
5918
  * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
5924
5919
  * `WebContentsView` class.
5925
5920
  *
5926
- * @experimental
5927
5921
  * @deprecated
5928
5922
  */
5929
5923
  addBrowserView(browserView: BrowserView): void;
@@ -6031,7 +6025,6 @@ declare namespace Electron {
6031
6025
  * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
6032
6026
  * `WebContentsView` class.
6033
6027
  *
6034
- * @experimental
6035
6028
  * @deprecated
6036
6029
  */
6037
6030
  getBrowserView(): (BrowserView) | (null);
@@ -6043,7 +6036,6 @@ declare namespace Electron {
6043
6036
  * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
6044
6037
  * `WebContentsView` class.
6045
6038
  *
6046
- * @experimental
6047
6039
  * @deprecated
6048
6040
  */
6049
6041
  getBrowserViews(): BrowserView[];
@@ -6406,7 +6398,6 @@ declare namespace Electron {
6406
6398
  * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
6407
6399
  * `WebContentsView` class.
6408
6400
  *
6409
- * @experimental
6410
6401
  * @deprecated
6411
6402
  */
6412
6403
  removeBrowserView(browserView: BrowserView): void;
@@ -6565,7 +6556,6 @@ declare namespace Electron {
6565
6556
  * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
6566
6557
  * `WebContentsView` class.
6567
6558
  *
6568
- * @experimental
6569
6559
  * @deprecated
6570
6560
  */
6571
6561
  setBrowserView(browserView: (BrowserView) | (null)): void;
@@ -6895,7 +6885,6 @@ declare namespace Electron {
6895
6885
  * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
6896
6886
  * `WebContentsView` class.
6897
6887
  *
6898
- * @experimental
6899
6888
  * @deprecated
6900
6889
  */
6901
6890
  setTopBrowserView(browserView: BrowserView): void;
@@ -14425,7 +14414,7 @@ declare namespace Electron {
14425
14414
  * > [!NOTE] `isMainFrame` will always be `false` for a `fileSystem` request as a
14426
14415
  * result of Chromium limitations.
14427
14416
  */
14428
- setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'top-level-storage-access' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
14417
+ setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
14429
14418
  /**
14430
14419
  * Sets the handler which can be used to respond to permission requests for the
14431
14420
  * `session`. Calling `callback(true)` will allow the permission and
@@ -14442,7 +14431,7 @@ declare namespace Electron {
14442
14431
  * control screen sharing separately should handle the two permissions
14443
14432
  * individually:
14444
14433
  */
14445
- setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'top-level-storage-access' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: (PermissionRequest) | (FilesystemPermissionRequest) | (MediaAccessPermissionRequest) | (OpenExternalPermissionRequest)) => void) | (null)): void;
14434
+ setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: (PermissionRequest) | (FilesystemPermissionRequest) | (MediaAccessPermissionRequest) | (OpenExternalPermissionRequest)) => void) | (null)): void;
14446
14435
  /**
14447
14436
  * Adds scripts that will be executed on ALL web contents that are associated with
14448
14437
  * this session just before normal `preload` scripts run.
@@ -15305,7 +15294,9 @@ declare namespace Electron {
15305
15294
  *
15306
15295
  * Same as `subscribeNotification`, but uses `NSNotificationCenter` for local
15307
15296
  * defaults. This is necessary for events such as
15308
- * `NSUserDefaultsDidChangeNotification`.
15297
+ * `NSUserDefaultsDidChangeNotification`. `callback` is always called on the main
15298
+ * thread. Notifications posted on other threads are delivered to it
15299
+ * asynchronously.
15309
15300
  *
15310
15301
  * If `event` is null, the `NSNotificationCenter` doesn’t use it as criteria for
15311
15302
  * delivery to the observer. See docs for more information.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "46.0.0-alpha.6",
3
- "extractedAt": "2026-11-05T19:07:10.061Z"
2
+ "electronVersion": "46.0.0-alpha.8",
3
+ "extractedAt": "2026-11-10T00:20:57.867Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "46.0.0-alpha.6",
3
+ "version": "46.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",