electron-types 38.7.2 → 39.0.0-alpha.7

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 38.7.2
1
+ // Type definitions for Electron 39.0.0-alpha.7
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
@@ -1048,30 +1048,6 @@ declare namespace Electron {
1048
1048
  * You should seek to use the `steal` option as sparingly as possible.
1049
1049
  */
1050
1050
  focus(options?: FocusOptions): void;
1051
- /**
1052
- * Array of strings naming currently enabled accessibility support components.
1053
- * Possible values:
1054
- *
1055
- * * `nativeAPIs` - Native OS accessibility APIs integration enabled.
1056
- * * `webContents` - Web contents accessibility tree exposure enabled.
1057
- * * `inlineTextBoxes` - Inline text boxes (character bounding boxes) enabled.
1058
- * * `extendedProperties` - Extended accessibility properties enabled.
1059
- * * `screenReader` - Screen reader specific mode enabled.
1060
- * * `html` - HTML accessibility tree construction enabled.
1061
- * * `labelImages` - Accessibility support for automatic image annotations.
1062
- * * `pdfPrinting` - Accessibility support for PDF printing enabled.
1063
- *
1064
- * Notes:
1065
- *
1066
- * * The array may be empty if no accessibility modes are active.
1067
- * * Use `app.isAccessibilitySupportEnabled()` for the legacy boolean check; prefer
1068
- * this method for granular diagnostics or telemetry.
1069
- *
1070
- * Example:
1071
- *
1072
- * @platform darwin,win32
1073
- */
1074
- getAccessibilitySupportFeatures(): string[];
1075
1051
  /**
1076
1052
  * Resolve with an object containing the following:
1077
1053
  *
@@ -1369,13 +1345,6 @@ declare namespace Electron {
1369
1345
  * whether or not the current OS version allows for native emoji pickers.
1370
1346
  */
1371
1347
  isEmojiPanelSupported(): boolean;
1372
- /**
1373
- * whether hardware acceleration is currently disabled.
1374
- *
1375
- * > [!NOTE] This information is only usable after the `gpu-info-update` event is
1376
- * emitted.
1377
- */
1378
- isHardwareAccelerationEnabled(): boolean;
1379
1348
  /**
1380
1349
  * `true` if the application—including all of its windows—is hidden (e.g. with
1381
1350
  * `Command-H`), `false` otherwise.
@@ -1537,32 +1506,11 @@ declare namespace Electron {
1537
1506
  * This API must be called after the `ready` event is emitted.
1538
1507
  *
1539
1508
  * > [!NOTE] Rendering accessibility tree can significantly affect the performance
1540
- * of your app. It should not be enabled by default. Calling this method will
1541
- * enable the following accessibility support features: `nativeAPIs`,
1542
- * `webContents`, `inlineTextBoxes`, and `extendedProperties`.
1509
+ * of your app. It should not be enabled by default.
1543
1510
  *
1544
1511
  * @platform darwin,win32
1545
1512
  */
1546
1513
  setAccessibilitySupportEnabled(enabled: boolean): void;
1547
- /**
1548
- * Possible values are:
1549
- *
1550
- * * `nativeAPIs` - Native OS accessibility APIs integration enabled.
1551
- * * `webContents` - Web contents accessibility tree exposure enabled.
1552
- * * `inlineTextBoxes` - Inline text boxes (character bounding boxes) enabled.
1553
- * * `extendedProperties` - Extended accessibility properties enabled.
1554
- * * `screenReader` - Screen reader specific mode enabled.
1555
- * * `html` - HTML accessibility tree construction enabled.
1556
- * * `labelImages` - Accessibility support for automatic image annotations.
1557
- * * `pdfPrinting` - Accessibility support for PDF printing enabled.
1558
- *
1559
- * To disable all supported features, pass an empty array `[]`.
1560
- *
1561
- * Example:
1562
- *
1563
- * @platform darwin,win32
1564
- */
1565
- setAccessibilitySupportFeatures(features: string[]): void;
1566
1514
  /**
1567
1515
  * Sets the activation policy for a given app.
1568
1516
  *
@@ -3010,22 +2958,18 @@ declare namespace Electron {
3010
2958
  *
3011
2959
  * The `accentColor` parameter accepts the following values:
3012
2960
  *
3013
- * * **Color string** - Like `true`, but sets a custom accent color using standard
3014
- * CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
3015
- * RGBA/HSLA formats are ignored and the color is treated as fully opaque.
3016
- * * **`true`** - Enable accent color highlighting for the window with the system
3017
- * accent color regardless of whether accent colors are enabled for windows in
3018
- * System `Settings.`
3019
- * * **`false`** - Disable accent color highlighting for the window regardless of
3020
- * whether accent colors are currently enabled for windows in System Settings.
3021
- * * **`null`** - Reset window accent color behavior to follow behavior set in
2961
+ * * **Color string** - Sets a custom accent color using standard CSS color formats
2962
+ * (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in RGBA/HSLA formats
2963
+ * are ignored and the color is treated as fully opaque.
2964
+ * * **`true`** - Uses the system's default accent color from user preferences in
3022
2965
  * System Settings.
2966
+ * * **`false`** - Explicitly disables accent color highlighting for the window.
3023
2967
  *
3024
2968
  * Examples:
3025
2969
  *
3026
2970
  * @platform win32
3027
2971
  */
3028
- setAccentColor(accentColor: (boolean) | (string) | (null)): void;
2972
+ setAccentColor(accentColor: (boolean) | (string)): void;
3029
2973
  /**
3030
2974
  * Sets whether the window should show always on top of other windows. After
3031
2975
  * setting this, the window is still a normal window, not a toolbox window which
@@ -3856,12 +3800,9 @@ declare namespace Electron {
3856
3800
  */
3857
3801
  tabbingIdentifier?: string;
3858
3802
  /**
3859
- * Use `WS_THICKFRAME` style for frameless windows on Windows, which adds the
3860
- * standard window frame. Setting it to `false` will remove window shadow and
3861
- * window animations, and disable window resizing via dragging the window edges.
3862
- * Default is `true`.
3863
- *
3864
- * @platform win32
3803
+ * Use `WS_THICKFRAME` style for frameless windows on Windows, which adds standard
3804
+ * window frame. Setting it to `false` will remove window shadow and window
3805
+ * animations. Default is `true`.
3865
3806
  */
3866
3807
  thickFrame?: boolean;
3867
3808
  /**
@@ -5748,22 +5689,18 @@ declare namespace Electron {
5748
5689
  *
5749
5690
  * The `accentColor` parameter accepts the following values:
5750
5691
  *
5751
- * * **Color string** - Like `true`, but sets a custom accent color using standard
5752
- * CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
5753
- * RGBA/HSLA formats are ignored and the color is treated as fully opaque.
5754
- * * **`true`** - Enable accent color highlighting for the window with the system
5755
- * accent color regardless of whether accent colors are enabled for windows in
5756
- * System `Settings.`
5757
- * * **`false`** - Disable accent color highlighting for the window regardless of
5758
- * whether accent colors are currently enabled for windows in System Settings.
5759
- * * **`null`** - Reset window accent color behavior to follow behavior set in
5692
+ * * **Color string** - Sets a custom accent color using standard CSS color formats
5693
+ * (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in RGBA/HSLA formats
5694
+ * are ignored and the color is treated as fully opaque.
5695
+ * * **`true`** - Uses the system's default accent color from user preferences in
5760
5696
  * System Settings.
5697
+ * * **`false`** - Explicitly disables accent color highlighting for the window.
5761
5698
  *
5762
5699
  * Examples:
5763
5700
  *
5764
5701
  * @platform win32
5765
5702
  */
5766
- setAccentColor(accentColor: (boolean) | (string) | (null)): void;
5703
+ setAccentColor(accentColor: (boolean) | (string)): void;
5767
5704
  /**
5768
5705
  * Sets whether the window should show always on top of other windows. After
5769
5706
  * setting this, the window is still a normal window, not a toolbox window which
@@ -6853,6 +6790,28 @@ declare namespace Electron {
6853
6790
  writeText(text: string, type?: 'selection' | 'clipboard'): void;
6854
6791
  }
6855
6792
 
6793
+ interface ColorSpace {
6794
+
6795
+ // Docs: https://electronjs.org/docs/api/structures/color-space
6796
+
6797
+ /**
6798
+ * The color matrix of the color space. Can be one of the following values:
6799
+ */
6800
+ matrix: ('rgb' | 'bt709' | 'fcc' | 'bt470bg' | 'smpte170m' | 'smpte240m' | 'ycocg' | 'bt2020-ncl' | 'ydzdx' | 'gbr' | 'invalid');
6801
+ /**
6802
+ * The color primaries of the color space. Can be one of the following values:
6803
+ */
6804
+ primaries: ('bt709' | 'bt470m' | 'bt470bg' | 'smpte170m' | 'smpte240m' | 'film' | 'bt2020' | 'smptest428-1' | 'smptest431-2' | 'p3' | 'xyz-d50' | 'adobe-rgb' | 'apple-generic-rgb' | 'wide-gamut-color-spin' | 'ebu-3213-e' | 'custom' | 'invalid');
6805
+ /**
6806
+ * The color range of the color space. Can be one of the following values:
6807
+ */
6808
+ range: ('limited' | 'full' | 'derived' | 'invalid');
6809
+ /**
6810
+ * The transfer function of the color space. Can be one of the following values:
6811
+ */
6812
+ transfer: ('bt709' | 'bt709-apple' | 'gamma18' | 'gamma22' | 'gamma24' | 'gamma28' | 'smpte170m' | 'smpte240m' | 'linear' | 'log' | 'log-sqrt' | 'iec61966-2-4' | 'bt1361-ecg' | 'srgb' | 'bt2020-10' | 'bt2020-12' | 'pq' | 'smptest428-1' | 'hlg' | 'srgb-hdr' | 'linear-hdr' | 'custom' | 'custom-hdr' | 'scrgb-linear-80-nits' | 'invalid');
6813
+ }
6814
+
6856
6815
  class CommandLine {
6857
6816
 
6858
6817
  // Docs: https://electronjs.org/docs/api/command-line
@@ -12737,11 +12696,8 @@ declare namespace Electron {
12737
12696
  * get complete permission handling. Most web APIs do a permission check and then
12738
12697
  * make a permission request if the check is denied. To clear the handler, call
12739
12698
  * `setPermissionCheckHandler(null)`.
12740
- *
12741
- * > [!NOTE] `isMainFrame` will always be `false` for a `fileSystem` request as a
12742
- * result of Chromium limitations.
12743
12699
  */
12744
- setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'geolocation' | 'fullscreen' | 'hid' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'openExternal' | 'pointerLock' | 'serial' | 'storage-access' | 'top-level-storage-access' | 'usb' | 'deprecated-sync-clipboard-read' | 'fileSystem', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
12700
+ setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'geolocation' | 'fullscreen' | 'hid' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'openExternal' | 'pointerLock' | 'serial' | 'storage-access' | 'top-level-storage-access' | 'usb' | 'deprecated-sync-clipboard-read', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
12745
12701
  /**
12746
12702
  * Sets the handler which can be used to respond to permission requests for the
12747
12703
  * `session`. Calling `callback(true)` will allow the permission and
@@ -12971,6 +12927,32 @@ declare namespace Electron {
12971
12927
  totalSizeBytes: number;
12972
12928
  }
12973
12929
 
12930
+ interface SharedTextureHandle {
12931
+
12932
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-handle
12933
+
12934
+ /**
12935
+ * IOSurfaceRef holds the shared texture. Note that this IOSurface is local to
12936
+ * current process (not global).
12937
+ *
12938
+ * @platform darwin
12939
+ */
12940
+ ioSurface?: Buffer;
12941
+ /**
12942
+ * Structure contains planes of shared texture.
12943
+ *
12944
+ * @platform linux
12945
+ */
12946
+ nativePixmap?: NativePixmap;
12947
+ /**
12948
+ * NT HANDLE holds the shared texture. Note that this NT HANDLE is local to current
12949
+ * process.
12950
+ *
12951
+ * @platform win32
12952
+ */
12953
+ ntHandle?: Buffer;
12954
+ }
12955
+
12974
12956
  interface SharedWorkerInfo {
12975
12957
 
12976
12958
  // Docs: https://electronjs.org/docs/api/structures/shared-worker-info
@@ -14760,7 +14742,16 @@ declare namespace Electron {
14760
14742
  // Docs: https://electronjs.org/docs/api/structures/usb-device
14761
14743
 
14762
14744
  /**
14763
- * The device class for the communication interface supported by the device
14745
+ * A USBConfiguration object containing information about the currently selected
14746
+ * configuration of a USB device.
14747
+ */
14748
+ configuration?: Configuration;
14749
+ /**
14750
+ * An array of USBConfiguration interfaces for controlling a paired USB device.
14751
+ */
14752
+ configurations: Array<Configurations>;
14753
+ /**
14754
+ * The device class for the communication interface supported by the device.
14764
14755
  */
14765
14756
  deviceClass: number;
14766
14757
  /**
@@ -14768,11 +14759,11 @@ declare namespace Electron {
14768
14759
  */
14769
14760
  deviceId: string;
14770
14761
  /**
14771
- * The device protocol for the communication interface supported by the device
14762
+ * The device protocol for the communication interface supported by the device.
14772
14763
  */
14773
14764
  deviceProtocol: number;
14774
14765
  /**
14775
- * The device subclass for the communication interface supported by the device
14766
+ * The device subclass for the communication interface supported by the device.
14776
14767
  */
14777
14768
  deviceSubclass: number;
14778
14769
  /**
@@ -14804,15 +14795,15 @@ declare namespace Electron {
14804
14795
  */
14805
14796
  serialNumber?: string;
14806
14797
  /**
14807
- * The USB protocol major version supported by the device
14798
+ * The USB protocol major version supported by the device.
14808
14799
  */
14809
14800
  usbVersionMajor: number;
14810
14801
  /**
14811
- * The USB protocol minor version supported by the device
14802
+ * The USB protocol minor version supported by the device.
14812
14803
  */
14813
14804
  usbVersionMinor: number;
14814
14805
  /**
14815
- * The USB protocol subminor version supported by the device
14806
+ * The USB protocol subminor version supported by the device.
14816
14807
  */
14817
14808
  usbVersionSubminor: number;
14818
14809
  /**
@@ -18407,9 +18398,7 @@ declare namespace Electron {
18407
18398
  * If set, this will sandbox the renderer associated with the window, making it
18408
18399
  * compatible with the Chromium OS-level sandbox and disabling the Node.js engine.
18409
18400
  * This is not the same as the `nodeIntegration` option and the APIs available to
18410
- * the preload script are more limited. Default is `true` since Electron 20. The
18411
- * sandbox will automatically be disabled when `nodeIntegration` is set to `true`.
18412
- * Read more about the option here.
18401
+ * the preload script are more limited. Read more about the option here.
18413
18402
  */
18414
18403
  sandbox?: boolean;
18415
18404
  /**
@@ -19658,13 +19647,6 @@ declare namespace Electron {
19658
19647
  * `session` is explicitly specified, `partition` is ignored.
19659
19648
  */
19660
19649
  partition?: string;
19661
- /**
19662
- * When set to `true`, custom protocol handlers registered for the request's URL
19663
- * scheme will not be called. This allows forwarding an intercepted request to the
19664
- * built-in handler. webRequest handlers will still be triggered when bypassing
19665
- * custom protocols. Defaults to `false`.
19666
- */
19667
- bypassCustomProtocolHandlers?: boolean;
19668
19650
  /**
19669
19651
  * Can be `include`, `omit` or `same-origin`. Whether to send credentials with this
19670
19652
  * request. If set to `include`, credentials from the session associated with the
@@ -19808,6 +19790,25 @@ declare namespace Electron {
19808
19790
  disabledCipherSuites?: number[];
19809
19791
  }
19810
19792
 
19793
+ interface Configuration {
19794
+ /**
19795
+ * the configuration value of this configuration.
19796
+ */
19797
+ configurationValue: number;
19798
+ /**
19799
+ * the name provided by the device to describe this configuration.
19800
+ */
19801
+ configurationName: string;
19802
+ /**
19803
+ * An array of USBInterface objects containing information about an interface
19804
+ * provided by the USB device.
19805
+ */
19806
+ interfaces: Interfaces[];
19807
+ }
19808
+
19809
+ interface Configurations {
19810
+ }
19811
+
19811
19812
  interface ConfigureHostResolverOptions {
19812
19813
  /**
19813
19814
  * Whether the built-in host resolver is used in preference to getaddrinfo. When
@@ -21266,6 +21267,27 @@ declare namespace Electron {
21266
21267
  conflictHandler?: (conflictType: 'exists' | 'existsAndRunning') => boolean;
21267
21268
  }
21268
21269
 
21270
+ interface NativePixmap {
21271
+ /**
21272
+ * Each plane's info of the shared texture.
21273
+ *
21274
+ * @platform linux
21275
+ */
21276
+ planes: Planes[];
21277
+ /**
21278
+ * The modifier is retrieved from GBM library and passed to EGL driver.
21279
+ *
21280
+ * @platform linux
21281
+ */
21282
+ modifier: string;
21283
+ /**
21284
+ * Indicates whether supports zero copy import to WebGPU.
21285
+ *
21286
+ * @platform linux
21287
+ */
21288
+ supportsZeroCopyWebGpuImport: boolean;
21289
+ }
21290
+
21269
21291
  interface NotificationConstructorOptions {
21270
21292
  /**
21271
21293
  * A title for the notification, which will be displayed at the top of the
@@ -21751,7 +21773,7 @@ declare namespace Electron {
21751
21773
  */
21752
21774
  securityOrigin?: string;
21753
21775
  /**
21754
- * The type of media access being requested, can be `video`, `audio` or `unknown`.
21776
+ * The type of media access being requested, can be `video`, `audio` or `unknown`
21755
21777
  */
21756
21778
  mediaType?: ('video' | 'audio' | 'unknown');
21757
21779
  /**
@@ -21760,21 +21782,9 @@ declare namespace Electron {
21760
21782
  */
21761
21783
  requestingUrl?: string;
21762
21784
  /**
21763
- * Whether the frame making the request is the main frame.
21785
+ * Whether the frame making the request is the main frame
21764
21786
  */
21765
21787
  isMainFrame: boolean;
21766
- /**
21767
- * The path of a `fileSystem` request.
21768
- */
21769
- filePath?: string;
21770
- /**
21771
- * Whether a `fileSystem` request is a directory.
21772
- */
21773
- isDirectory?: boolean;
21774
- /**
21775
- * The access type of a `fileSystem` request. Can be `writable` or `readable`.
21776
- */
21777
- fileAccessType?: ('writable' | 'readable');
21778
21788
  }
21779
21789
 
21780
21790
  interface PopupOptions {
@@ -22452,8 +22462,12 @@ declare namespace Electron {
22452
22462
  */
22453
22463
  codedSize: Size;
22454
22464
  /**
22455
- * A subsection of [0, 0, codedSize.width(), codedSize.height()]. In OSR case, it
22456
- * is expected to have the full section area.
22465
+ * The color space of the video frame.
22466
+ */
22467
+ colorSpace: ColorSpace;
22468
+ /**
22469
+ * A subsection of [0, 0, codedSize.width, codedSize.height]. In OSR case, it is
22470
+ * expected to have the full section area.
22457
22471
  */
22458
22472
  visibleRect: Rectangle;
22459
22473
  /**
@@ -22471,23 +22485,9 @@ declare namespace Electron {
22471
22485
  */
22472
22486
  metadata: Metadata;
22473
22487
  /**
22474
- * The handle to the shared texture.
22475
- *
22476
- * @platform win32,darwin
22477
- */
22478
- sharedTextureHandle: Buffer;
22479
- /**
22480
- * Each plane's info of the shared texture.
22481
- *
22482
- * @platform linux
22483
- */
22484
- planes: Planes[];
22485
- /**
22486
- * The modifier is retrieved from GBM library and passed to EGL driver.
22487
- *
22488
- * @platform linux
22488
+ * The shared texture handle data.
22489
22489
  */
22490
- modifier: string;
22490
+ handle: SharedTextureHandle;
22491
22491
  }
22492
22492
 
22493
22493
  interface TitleBarOverlay {
@@ -23248,6 +23248,22 @@ declare namespace Electron {
23248
23248
  interface InputReports {
23249
23249
  }
23250
23250
 
23251
+ interface Interfaces {
23252
+ /**
23253
+ * the interface number of this interface.
23254
+ */
23255
+ interfaceNumber: number;
23256
+ /**
23257
+ * the currently selected alternative configuration of this interface.
23258
+ */
23259
+ alternate: Alternate;
23260
+ /**
23261
+ * an array containing instances of the USBAlternateInterface interface describing
23262
+ * each of the alternative configurations possible for this interface.
23263
+ */
23264
+ alternates: Alternates[];
23265
+ }
23266
+
23251
23267
  interface LaunchItems {
23252
23268
  /**
23253
23269
  * name value of a registry entry.
@@ -23548,6 +23564,58 @@ declare namespace Electron {
23548
23564
  name: string;
23549
23565
  }
23550
23566
 
23567
+ interface Alternate {
23568
+ /**
23569
+ * the alternate setting number of this interface.
23570
+ */
23571
+ alternateSetting: number;
23572
+ /**
23573
+ * the class of this interface. See USB.org for class code descriptions.
23574
+ */
23575
+ interfaceClass: number;
23576
+ /**
23577
+ * the subclass of this interface.
23578
+ */
23579
+ interfaceSubclass: number;
23580
+ /**
23581
+ * the protocol supported by this interface.
23582
+ */
23583
+ interfaceProtocol: number;
23584
+ /**
23585
+ * the name of the interface, if one is provided by the device.
23586
+ */
23587
+ interfaceName?: string;
23588
+ /**
23589
+ * an array containing instances of the USBEndpoint interface describing each of
23590
+ * the endpoints that are part of this interface.
23591
+ */
23592
+ endpoints: Endpoints[];
23593
+ }
23594
+
23595
+ interface Alternates {
23596
+ }
23597
+
23598
+ interface Endpoints {
23599
+ /**
23600
+ * this endpoint's "endpoint number" which is a value from 1 to 15.
23601
+ */
23602
+ endpointNumber: number;
23603
+ /**
23604
+ * the direction in which this endpoint transfers data - can be either 'in' or
23605
+ * 'out'.
23606
+ */
23607
+ direction: string;
23608
+ /**
23609
+ * the type of this endpoint - can be either 'bulk', 'interrupt', or 'isochronous'.
23610
+ */
23611
+ type: string;
23612
+ /**
23613
+ * the size of the packets that data sent through this endpoint will be divided
23614
+ * into.
23615
+ */
23616
+ packetSize: number;
23617
+ }
23618
+
23551
23619
 
23552
23620
 
23553
23621
  namespace Common {
@@ -23585,6 +23653,8 @@ declare namespace Electron {
23585
23653
  type CloseOpts = Electron.CloseOpts;
23586
23654
  type Collections = Electron.Collections;
23587
23655
  type Config = Electron.Config;
23656
+ type Configuration = Electron.Configuration;
23657
+ type Configurations = Electron.Configurations;
23588
23658
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
23589
23659
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
23590
23660
  type ContextMenuEvent = Electron.ContextMenuEvent;
@@ -23655,6 +23725,7 @@ declare namespace Electron {
23655
23725
  type MessageDetails = Electron.MessageDetails;
23656
23726
  type MessageEvent = Electron.MessageEvent;
23657
23727
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
23728
+ type NativePixmap = Electron.NativePixmap;
23658
23729
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
23659
23730
  type Offscreen = Electron.Offscreen;
23660
23731
  type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
@@ -23757,6 +23828,7 @@ declare namespace Electron {
23757
23828
  type FeatureReports = Electron.FeatureReports;
23758
23829
  type FoundInPageResult = Electron.FoundInPageResult;
23759
23830
  type InputReports = Electron.InputReports;
23831
+ type Interfaces = Electron.Interfaces;
23760
23832
  type LaunchItems = Electron.LaunchItems;
23761
23833
  type Margins = Electron.Margins;
23762
23834
  type MediaFlags = Electron.MediaFlags;
@@ -23766,11 +23838,15 @@ declare namespace Electron {
23766
23838
  type Params = Electron.Params;
23767
23839
  type Planes = Electron.Planes;
23768
23840
  type Video = Electron.Video;
23841
+ type Alternate = Electron.Alternate;
23842
+ type Alternates = Electron.Alternates;
23843
+ type Endpoints = Electron.Endpoints;
23769
23844
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
23770
23845
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
23771
23846
  type BluetoothDevice = Electron.BluetoothDevice;
23772
23847
  type Certificate = Electron.Certificate;
23773
23848
  type CertificatePrincipal = Electron.CertificatePrincipal;
23849
+ type ColorSpace = Electron.ColorSpace;
23774
23850
  type Cookie = Electron.Cookie;
23775
23851
  type CPUUsage = Electron.CPUUsage;
23776
23852
  type CrashReport = Electron.CrashReport;
@@ -23832,6 +23908,7 @@ declare namespace Electron {
23832
23908
  type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
23833
23909
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
23834
23910
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
23911
+ type SharedTextureHandle = Electron.SharedTextureHandle;
23835
23912
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
23836
23913
  type SharingItem = Electron.SharingItem;
23837
23914
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -23961,6 +24038,8 @@ declare namespace Electron {
23961
24038
  type CloseOpts = Electron.CloseOpts;
23962
24039
  type Collections = Electron.Collections;
23963
24040
  type Config = Electron.Config;
24041
+ type Configuration = Electron.Configuration;
24042
+ type Configurations = Electron.Configurations;
23964
24043
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
23965
24044
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
23966
24045
  type ContextMenuEvent = Electron.ContextMenuEvent;
@@ -24031,6 +24110,7 @@ declare namespace Electron {
24031
24110
  type MessageDetails = Electron.MessageDetails;
24032
24111
  type MessageEvent = Electron.MessageEvent;
24033
24112
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
24113
+ type NativePixmap = Electron.NativePixmap;
24034
24114
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
24035
24115
  type Offscreen = Electron.Offscreen;
24036
24116
  type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
@@ -24133,6 +24213,7 @@ declare namespace Electron {
24133
24213
  type FeatureReports = Electron.FeatureReports;
24134
24214
  type FoundInPageResult = Electron.FoundInPageResult;
24135
24215
  type InputReports = Electron.InputReports;
24216
+ type Interfaces = Electron.Interfaces;
24136
24217
  type LaunchItems = Electron.LaunchItems;
24137
24218
  type Margins = Electron.Margins;
24138
24219
  type MediaFlags = Electron.MediaFlags;
@@ -24142,11 +24223,15 @@ declare namespace Electron {
24142
24223
  type Params = Electron.Params;
24143
24224
  type Planes = Electron.Planes;
24144
24225
  type Video = Electron.Video;
24226
+ type Alternate = Electron.Alternate;
24227
+ type Alternates = Electron.Alternates;
24228
+ type Endpoints = Electron.Endpoints;
24145
24229
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
24146
24230
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
24147
24231
  type BluetoothDevice = Electron.BluetoothDevice;
24148
24232
  type Certificate = Electron.Certificate;
24149
24233
  type CertificatePrincipal = Electron.CertificatePrincipal;
24234
+ type ColorSpace = Electron.ColorSpace;
24150
24235
  type Cookie = Electron.Cookie;
24151
24236
  type CPUUsage = Electron.CPUUsage;
24152
24237
  type CrashReport = Electron.CrashReport;
@@ -24208,6 +24293,7 @@ declare namespace Electron {
24208
24293
  type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
24209
24294
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
24210
24295
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
24296
+ type SharedTextureHandle = Electron.SharedTextureHandle;
24211
24297
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
24212
24298
  type SharingItem = Electron.SharingItem;
24213
24299
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -24265,6 +24351,8 @@ declare namespace Electron {
24265
24351
  type CloseOpts = Electron.CloseOpts;
24266
24352
  type Collections = Electron.Collections;
24267
24353
  type Config = Electron.Config;
24354
+ type Configuration = Electron.Configuration;
24355
+ type Configurations = Electron.Configurations;
24268
24356
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
24269
24357
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
24270
24358
  type ContextMenuEvent = Electron.ContextMenuEvent;
@@ -24335,6 +24423,7 @@ declare namespace Electron {
24335
24423
  type MessageDetails = Electron.MessageDetails;
24336
24424
  type MessageEvent = Electron.MessageEvent;
24337
24425
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
24426
+ type NativePixmap = Electron.NativePixmap;
24338
24427
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
24339
24428
  type Offscreen = Electron.Offscreen;
24340
24429
  type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
@@ -24437,6 +24526,7 @@ declare namespace Electron {
24437
24526
  type FeatureReports = Electron.FeatureReports;
24438
24527
  type FoundInPageResult = Electron.FoundInPageResult;
24439
24528
  type InputReports = Electron.InputReports;
24529
+ type Interfaces = Electron.Interfaces;
24440
24530
  type LaunchItems = Electron.LaunchItems;
24441
24531
  type Margins = Electron.Margins;
24442
24532
  type MediaFlags = Electron.MediaFlags;
@@ -24446,11 +24536,15 @@ declare namespace Electron {
24446
24536
  type Params = Electron.Params;
24447
24537
  type Planes = Electron.Planes;
24448
24538
  type Video = Electron.Video;
24539
+ type Alternate = Electron.Alternate;
24540
+ type Alternates = Electron.Alternates;
24541
+ type Endpoints = Electron.Endpoints;
24449
24542
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
24450
24543
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
24451
24544
  type BluetoothDevice = Electron.BluetoothDevice;
24452
24545
  type Certificate = Electron.Certificate;
24453
24546
  type CertificatePrincipal = Electron.CertificatePrincipal;
24547
+ type ColorSpace = Electron.ColorSpace;
24454
24548
  type Cookie = Electron.Cookie;
24455
24549
  type CPUUsage = Electron.CPUUsage;
24456
24550
  type CrashReport = Electron.CrashReport;
@@ -24512,6 +24606,7 @@ declare namespace Electron {
24512
24606
  type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
24513
24607
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
24514
24608
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
24609
+ type SharedTextureHandle = Electron.SharedTextureHandle;
24515
24610
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
24516
24611
  type SharingItem = Electron.SharingItem;
24517
24612
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -24539,8 +24634,6 @@ declare namespace Electron {
24539
24634
  type IncomingMessage = Electron.IncomingMessage;
24540
24635
  const net: Net;
24541
24636
  type Net = Electron.Net;
24542
- const parentPort: ParentPort;
24543
- type ParentPort = Electron.ParentPort;
24544
24637
  const systemPreferences: SystemPreferences;
24545
24638
  type SystemPreferences = Electron.SystemPreferences;
24546
24639
  type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
@@ -24568,6 +24661,8 @@ declare namespace Electron {
24568
24661
  type CloseOpts = Electron.CloseOpts;
24569
24662
  type Collections = Electron.Collections;
24570
24663
  type Config = Electron.Config;
24664
+ type Configuration = Electron.Configuration;
24665
+ type Configurations = Electron.Configurations;
24571
24666
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
24572
24667
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
24573
24668
  type ContextMenuEvent = Electron.ContextMenuEvent;
@@ -24638,6 +24733,7 @@ declare namespace Electron {
24638
24733
  type MessageDetails = Electron.MessageDetails;
24639
24734
  type MessageEvent = Electron.MessageEvent;
24640
24735
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
24736
+ type NativePixmap = Electron.NativePixmap;
24641
24737
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
24642
24738
  type Offscreen = Electron.Offscreen;
24643
24739
  type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
@@ -24740,6 +24836,7 @@ declare namespace Electron {
24740
24836
  type FeatureReports = Electron.FeatureReports;
24741
24837
  type FoundInPageResult = Electron.FoundInPageResult;
24742
24838
  type InputReports = Electron.InputReports;
24839
+ type Interfaces = Electron.Interfaces;
24743
24840
  type LaunchItems = Electron.LaunchItems;
24744
24841
  type Margins = Electron.Margins;
24745
24842
  type MediaFlags = Electron.MediaFlags;
@@ -24749,11 +24846,15 @@ declare namespace Electron {
24749
24846
  type Params = Electron.Params;
24750
24847
  type Planes = Electron.Planes;
24751
24848
  type Video = Electron.Video;
24849
+ type Alternate = Electron.Alternate;
24850
+ type Alternates = Electron.Alternates;
24851
+ type Endpoints = Electron.Endpoints;
24752
24852
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
24753
24853
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
24754
24854
  type BluetoothDevice = Electron.BluetoothDevice;
24755
24855
  type Certificate = Electron.Certificate;
24756
24856
  type CertificatePrincipal = Electron.CertificatePrincipal;
24857
+ type ColorSpace = Electron.ColorSpace;
24757
24858
  type Cookie = Electron.Cookie;
24758
24859
  type CPUUsage = Electron.CPUUsage;
24759
24860
  type CrashReport = Electron.CrashReport;
@@ -24815,6 +24916,7 @@ declare namespace Electron {
24815
24916
  type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
24816
24917
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
24817
24918
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
24919
+ type SharedTextureHandle = Electron.SharedTextureHandle;
24818
24920
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
24819
24921
  type SharingItem = Electron.SharingItem;
24820
24922
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -24889,8 +24991,6 @@ declare namespace Electron {
24889
24991
  const netLog: NetLog;
24890
24992
  type NetLog = Electron.NetLog;
24891
24993
  class Notification extends Electron.Notification {}
24892
- const parentPort: ParentPort;
24893
- type ParentPort = Electron.ParentPort;
24894
24994
  const powerMonitor: PowerMonitor;
24895
24995
  type PowerMonitor = Electron.PowerMonitor;
24896
24996
  const powerSaveBlocker: PowerSaveBlocker;
@@ -24963,6 +25063,8 @@ declare namespace Electron {
24963
25063
  type CloseOpts = Electron.CloseOpts;
24964
25064
  type Collections = Electron.Collections;
24965
25065
  type Config = Electron.Config;
25066
+ type Configuration = Electron.Configuration;
25067
+ type Configurations = Electron.Configurations;
24966
25068
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
24967
25069
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
24968
25070
  type ContextMenuEvent = Electron.ContextMenuEvent;
@@ -25033,6 +25135,7 @@ declare namespace Electron {
25033
25135
  type MessageDetails = Electron.MessageDetails;
25034
25136
  type MessageEvent = Electron.MessageEvent;
25035
25137
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
25138
+ type NativePixmap = Electron.NativePixmap;
25036
25139
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
25037
25140
  type Offscreen = Electron.Offscreen;
25038
25141
  type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
@@ -25135,6 +25238,7 @@ declare namespace Electron {
25135
25238
  type FeatureReports = Electron.FeatureReports;
25136
25239
  type FoundInPageResult = Electron.FoundInPageResult;
25137
25240
  type InputReports = Electron.InputReports;
25241
+ type Interfaces = Electron.Interfaces;
25138
25242
  type LaunchItems = Electron.LaunchItems;
25139
25243
  type Margins = Electron.Margins;
25140
25244
  type MediaFlags = Electron.MediaFlags;
@@ -25144,11 +25248,15 @@ declare namespace Electron {
25144
25248
  type Params = Electron.Params;
25145
25249
  type Planes = Electron.Planes;
25146
25250
  type Video = Electron.Video;
25251
+ type Alternate = Electron.Alternate;
25252
+ type Alternates = Electron.Alternates;
25253
+ type Endpoints = Electron.Endpoints;
25147
25254
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
25148
25255
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
25149
25256
  type BluetoothDevice = Electron.BluetoothDevice;
25150
25257
  type Certificate = Electron.Certificate;
25151
25258
  type CertificatePrincipal = Electron.CertificatePrincipal;
25259
+ type ColorSpace = Electron.ColorSpace;
25152
25260
  type Cookie = Electron.Cookie;
25153
25261
  type CPUUsage = Electron.CPUUsage;
25154
25262
  type CrashReport = Electron.CrashReport;
@@ -25210,6 +25318,7 @@ declare namespace Electron {
25210
25318
  type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
25211
25319
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
25212
25320
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
25321
+ type SharedTextureHandle = Electron.SharedTextureHandle;
25213
25322
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
25214
25323
  type SharingItem = Electron.SharingItem;
25215
25324
  type ShortcutDetails = Electron.ShortcutDetails;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "38.7.2",
3
- "extractedAt": "2025-12-24T03:18:29.380Z"
2
+ "electronVersion": "39.0.0-alpha.7",
3
+ "extractedAt": "2025-12-24T03:18:25.307Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "38.7.2",
3
+ "version": "39.0.0-alpha.7",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",