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

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.4
1
+ // Type definitions for Electron 40.0.0-alpha.6
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
@@ -1370,7 +1370,7 @@ declare namespace Electron {
1370
1370
  */
1371
1371
  isEmojiPanelSupported(): boolean;
1372
1372
  /**
1373
- * whether hardware acceleration is currently disabled.
1373
+ * whether hardware acceleration is currently enabled.
1374
1374
  *
1375
1375
  * > [!NOTE] This information is only usable after the `gpu-info-update` event is
1376
1376
  * emitted.
@@ -9572,8 +9572,8 @@ declare namespace Electron {
9572
9572
  static createFromDataURL(dataURL: string): NativeImage;
9573
9573
  /**
9574
9574
  * Creates a new `NativeImage` instance from the `NSImage` that maps to the given
9575
- * image name. See Apple's `NSImageName` documentation for a list of possible
9576
- * values.
9575
+ * image name. See Apple's `NSImageName` documentation and SF Symbols for a list of
9576
+ * possible values.
9577
9577
  *
9578
9578
  * The `hslShift` is applied to the image with the following rules:
9579
9579
  *
@@ -9597,6 +9597,10 @@ declare namespace Electron {
9597
9597
  *
9598
9598
  * where `SYSTEM_IMAGE_NAME` should be replaced with any value from this list.
9599
9599
  *
9600
+ * For SF Symbols, usage looks as follows:
9601
+ *
9602
+ * where `'square.and.pencil'` is the symbol name from the SF Symbols app.
9603
+ *
9600
9604
  * @platform darwin
9601
9605
  */
9602
9606
  static createFromNamedImage(imageName: string, hslShift?: number[]): NativeImage;
@@ -12994,6 +12998,50 @@ declare namespace Electron {
12994
12998
  totalSizeBytes: number;
12995
12999
  }
12996
13000
 
13001
+ interface SharedTexture {
13002
+
13003
+ // Docs: https://electronjs.org/docs/api/shared-texture
13004
+
13005
+ /**
13006
+ * Imports the shared texture from the given options.
13007
+ *
13008
+ * > [!NOTE] This method is only available in the main process.
13009
+ *
13010
+ * The imported shared texture.
13011
+ *
13012
+ * @experimental
13013
+ */
13014
+ importSharedTexture(options: ImportSharedTextureOptions): SharedTextureImported;
13015
+ /**
13016
+ * Send the imported shared texture to a renderer process. You must register a
13017
+ * receiver at renderer process before calling this method. This method has a
13018
+ * 1000ms timeout. Ensure the receiver is set and the renderer process is alive
13019
+ * before calling this method.
13020
+ *
13021
+ * > [!NOTE] This method is only available in the main process.
13022
+ *
13023
+ * Resolves when the transfer is complete.
13024
+ *
13025
+ * @experimental
13026
+ */
13027
+ sendSharedTexture(options: SendSharedTextureOptions, ...args: any[]): Promise<void>;
13028
+ /**
13029
+ * Set a callback to receive imported shared textures from the main process.
13030
+ *
13031
+ * > [!NOTE] This method is only available in the renderer process.
13032
+ *
13033
+ * @experimental
13034
+ */
13035
+ setSharedTextureReceiver(callback: (receivedSharedTextureData: ReceivedSharedTextureData, ...args: any[]) => Promise<void>): void;
13036
+ /**
13037
+ * A `SharedTextureSubtle` property, provides subtle APIs for interacting with
13038
+ * shared texture for advanced users.
13039
+ *
13040
+ * @experimental
13041
+ */
13042
+ subtle: SharedTextureSubtle;
13043
+ }
13044
+
12997
13045
  interface SharedTextureHandle {
12998
13046
 
12999
13047
  // Docs: https://electronjs.org/docs/api/structures/shared-texture-handle
@@ -13020,6 +13068,165 @@ declare namespace Electron {
13020
13068
  ntHandle?: Buffer;
13021
13069
  }
13022
13070
 
13071
+ interface SharedTextureImported {
13072
+
13073
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-imported
13074
+
13075
+ /**
13076
+ * Create a `VideoFrame` that uses the imported shared texture in the current
13077
+ * process. You can call `VideoFrame.close()` once you've finished using the
13078
+ * object. The underlying resources will wait for GPU finish internally.
13079
+ */
13080
+ getVideoFrame: () => VideoFrame;
13081
+ /**
13082
+ * Release this object's reference of the imported shared texture. The underlying
13083
+ * resource will be alive until every reference is released.
13084
+ */
13085
+ release: () => void;
13086
+ /**
13087
+ * Provides subtle APIs to interact with the imported shared texture for advanced
13088
+ * users.
13089
+ */
13090
+ subtle: SharedTextureImportedSubtle;
13091
+ /**
13092
+ * The unique identifier of the imported shared texture.
13093
+ */
13094
+ textureId: string;
13095
+ }
13096
+
13097
+ interface SharedTextureImportedSubtle {
13098
+
13099
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-imported-subtle
13100
+
13101
+ /**
13102
+ * This method is for advanced users. If used, it is typically called after
13103
+ * `finishTransferSharedTexture`, and should be passed to the object which was
13104
+ * called `startTransferSharedTexture` to prevent the source object release the
13105
+ * underlying resource before the target object actually acquire the reference at
13106
+ * gpu process asyncly.
13107
+ */
13108
+ getFrameCreationSyncToken: () => SharedTextureSyncToken;
13109
+ /**
13110
+ * Create a `VideoFrame` that uses the imported shared texture in the current
13111
+ * process. You can call `VideoFrame.close()` once you've finished using the
13112
+ * object. The underlying resources will wait for GPU finish internally.
13113
+ */
13114
+ getVideoFrame: () => VideoFrame;
13115
+ /**
13116
+ * Release the resources. If you transferred and get multiple
13117
+ * `SharedTextureImported` objects, you have to `release` every one of them. The
13118
+ * resource on the GPU process will be destroyed when the last one is released.
13119
+ */
13120
+ release: (callback?: () => void) => void;
13121
+ /**
13122
+ * This method is for advanced users. If used, this object's underlying resource
13123
+ * will not be released until the set sync token is fulfilled at gpu process. By
13124
+ * using sync tokens, users are not required to use release callbacks for lifetime
13125
+ * management.
13126
+ */
13127
+ setReleaseSyncToken: (syncToken: SharedTextureSyncToken) => void;
13128
+ /**
13129
+ * Create a `SharedTextureTransfer` that can be serialized and transferred to other
13130
+ * processes.
13131
+ */
13132
+ startTransferSharedTexture: () => SharedTextureTransfer;
13133
+ }
13134
+
13135
+ interface SharedTextureImportTextureInfo {
13136
+
13137
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-import-texture-info
13138
+
13139
+ /**
13140
+ * The full dimensions of the shared texture.
13141
+ */
13142
+ codedSize: Size;
13143
+ /**
13144
+ * The color space of the texture.
13145
+ */
13146
+ colorSpace?: ColorSpace;
13147
+ /**
13148
+ * The shared texture handle.
13149
+ */
13150
+ handle: SharedTextureHandle;
13151
+ /**
13152
+ * The pixel format of the texture.
13153
+ */
13154
+ pixelFormat: ('bgra' | 'rgba' | 'rgbaf16');
13155
+ /**
13156
+ * A timestamp in microseconds that will be reflected to `VideoFrame`.
13157
+ */
13158
+ timestamp?: number;
13159
+ /**
13160
+ * A subsection of [0, 0, codedSize.width, codedSize.height]. In common cases, it
13161
+ * is the full section area.
13162
+ */
13163
+ visibleRect?: Rectangle;
13164
+ }
13165
+
13166
+ interface SharedTextureSubtle {
13167
+
13168
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-subtle
13169
+
13170
+ /**
13171
+ * Finishes the transfer of the shared texture and gets the transferred shared
13172
+ * texture. Returns the imported shared texture from the transfer object.
13173
+ */
13174
+ finishTransferSharedTexture: (transfer: SharedTextureTransfer) => SharedTextureImportedSubtle;
13175
+ /**
13176
+ * Imports the shared texture from the given options. Returns the imported shared
13177
+ * texture.
13178
+ */
13179
+ importSharedTexture: (textureInfo: SharedTextureImportTextureInfo) => SharedTextureImportedSubtle;
13180
+ }
13181
+
13182
+ interface SharedTextureSyncToken {
13183
+
13184
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-sync-token
13185
+
13186
+ /**
13187
+ * The opaque data for sync token.
13188
+ */
13189
+ syncToken: string;
13190
+ }
13191
+
13192
+ interface SharedTextureTransfer {
13193
+
13194
+ // Docs: https://electronjs.org/docs/api/structures/shared-texture-transfer
13195
+
13196
+ /**
13197
+ * The full dimensions of the shared texture.
13198
+ *
13199
+ */
13200
+ readonly codedSize: Size;
13201
+ /**
13202
+ * The pixel format of the transferring texture.
13203
+ *
13204
+ */
13205
+ readonly pixelFormat: string;
13206
+ /**
13207
+ * The opaque sync token data for frame creation.
13208
+ *
13209
+ */
13210
+ readonly syncToken: string;
13211
+ /**
13212
+ * A timestamp in microseconds that will be reflected to `VideoFrame`.
13213
+ *
13214
+ */
13215
+ readonly timestamp: number;
13216
+ /**
13217
+ * The opaque transfer data of the shared texture. This can be transferred across
13218
+ * Electron processes.
13219
+ *
13220
+ */
13221
+ readonly transfer: string;
13222
+ /**
13223
+ * A subsection of [0, 0, codedSize.width(), codedSize.height()]. In common cases,
13224
+ * it is the full section area.
13225
+ *
13226
+ */
13227
+ readonly visibleRect: Rectangle;
13228
+ }
13229
+
13023
13230
  interface SharedWorkerInfo {
13024
13231
 
13025
13232
  // Docs: https://electronjs.org/docs/api/structures/shared-worker-info
@@ -19714,6 +19921,13 @@ declare namespace Electron {
19714
19921
  * `session` is explicitly specified, `partition` is ignored.
19715
19922
  */
19716
19923
  partition?: string;
19924
+ /**
19925
+ * When set to `true`, custom protocol handlers registered for the request's URL
19926
+ * scheme will not be called. This allows forwarding an intercepted request to the
19927
+ * built-in handler. webRequest handlers will still be triggered when bypassing
19928
+ * custom protocols. Defaults to `false`.
19929
+ */
19930
+ bypassCustomProtocolHandlers?: boolean;
19717
19931
  /**
19718
19932
  * Can be `include`, `omit` or `same-origin`. Whether to send credentials with this
19719
19933
  * request. If set to `include`, credentials from the session associated with the
@@ -20786,6 +21000,18 @@ declare namespace Electron {
20786
21000
  password: string;
20787
21001
  }
20788
21002
 
21003
+ interface ImportSharedTextureOptions {
21004
+ /**
21005
+ * The information of the shared texture to import.
21006
+ */
21007
+ textureInfo: SharedTextureImportTextureInfo;
21008
+ /**
21009
+ * Called when all references in all processes are released. You should keep the
21010
+ * imported texture valid until this callback is called.
21011
+ */
21012
+ allReferencesReleased?: () => void;
21013
+ }
21014
+
20789
21015
  interface Info {
20790
21016
  /**
20791
21017
  * Security origin for the isolated world.
@@ -21075,6 +21301,9 @@ declare namespace Electron {
21075
21301
  * An Accelerator string.
21076
21302
  */
21077
21303
  accelerator?: string;
21304
+ /**
21305
+ * Can be a NativeImage or the file path of an icon.
21306
+ */
21078
21307
  icon?: (NativeImage) | (string);
21079
21308
  /**
21080
21309
  * If false, the menu item will be greyed out and unclickable.
@@ -22078,6 +22307,13 @@ declare namespace Electron {
22078
22307
  url: string;
22079
22308
  }
22080
22309
 
22310
+ interface ReceivedSharedTextureData {
22311
+ /**
22312
+ * The imported shared texture.
22313
+ */
22314
+ importedSharedTexture: SharedTextureImported;
22315
+ }
22316
+
22081
22317
  interface RegistrationCompletedDetails {
22082
22318
  /**
22083
22319
  * The base URL that a service worker is registered for
@@ -22340,6 +22576,20 @@ declare namespace Electron {
22340
22576
  frame: (WebFrameMain) | (null);
22341
22577
  }
22342
22578
 
22579
+ interface SendSharedTextureOptions {
22580
+ /**
22581
+ * The target frame to transfer the shared texture to. For `WebContents`, you can
22582
+ * pass `webContents.mainFrame`. If you provide a `webFrameMain` that is not a main
22583
+ * frame, you'll need to enable `webPreferences.nodeIntegrationInSubFrames` for
22584
+ * this, since this feature requires IPC between main and the frame.
22585
+ */
22586
+ frame: WebFrameMain;
22587
+ /**
22588
+ * The imported shared texture.
22589
+ */
22590
+ importedSharedTexture: SharedTextureImported;
22591
+ }
22592
+
22343
22593
  interface SerialPortRevokedDetails {
22344
22594
  port: SerialPort;
22345
22595
  /**
@@ -23715,6 +23965,8 @@ declare namespace Electron {
23715
23965
  type CrashReporter = Electron.CrashReporter;
23716
23966
  const nativeImage: typeof NativeImage;
23717
23967
  type NativeImage = Electron.NativeImage;
23968
+ const sharedTexture: SharedTexture;
23969
+ type SharedTexture = Electron.SharedTexture;
23718
23970
  const shell: Shell;
23719
23971
  type Shell = Electron.Shell;
23720
23972
  type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
@@ -23794,6 +24046,7 @@ declare namespace Electron {
23794
24046
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
23795
24047
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
23796
24048
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
24049
+ type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
23797
24050
  type Info = Electron.Info;
23798
24051
  type Input = Electron.Input;
23799
24052
  type InsertCSSOptions = Electron.InsertCSSOptions;
@@ -23847,6 +24100,7 @@ declare namespace Electron {
23847
24100
  type Provider = Electron.Provider;
23848
24101
  type PurchaseProductOpts = Electron.PurchaseProductOpts;
23849
24102
  type ReadBookmark = Electron.ReadBookmark;
24103
+ type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
23850
24104
  type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
23851
24105
  type RelaunchOptions = Electron.RelaunchOptions;
23852
24106
  type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
@@ -23862,6 +24116,7 @@ declare namespace Electron {
23862
24116
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
23863
24117
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
23864
24118
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
24119
+ type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
23865
24120
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
23866
24121
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
23867
24122
  type Settings = Electron.Settings;
@@ -23998,6 +24253,12 @@ declare namespace Electron {
23998
24253
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
23999
24254
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
24000
24255
  type SharedTextureHandle = Electron.SharedTextureHandle;
24256
+ type SharedTextureImported = Electron.SharedTextureImported;
24257
+ type SharedTextureImportedSubtle = Electron.SharedTextureImportedSubtle;
24258
+ type SharedTextureImportTextureInfo = Electron.SharedTextureImportTextureInfo;
24259
+ type SharedTextureSubtle = Electron.SharedTextureSubtle;
24260
+ type SharedTextureSyncToken = Electron.SharedTextureSyncToken;
24261
+ type SharedTextureTransfer = Electron.SharedTextureTransfer;
24001
24262
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
24002
24263
  type SharingItem = Electron.SharingItem;
24003
24264
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -24179,6 +24440,7 @@ declare namespace Electron {
24179
24440
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
24180
24441
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
24181
24442
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
24443
+ type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
24182
24444
  type Info = Electron.Info;
24183
24445
  type Input = Electron.Input;
24184
24446
  type InsertCSSOptions = Electron.InsertCSSOptions;
@@ -24232,6 +24494,7 @@ declare namespace Electron {
24232
24494
  type Provider = Electron.Provider;
24233
24495
  type PurchaseProductOpts = Electron.PurchaseProductOpts;
24234
24496
  type ReadBookmark = Electron.ReadBookmark;
24497
+ type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
24235
24498
  type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
24236
24499
  type RelaunchOptions = Electron.RelaunchOptions;
24237
24500
  type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
@@ -24247,6 +24510,7 @@ declare namespace Electron {
24247
24510
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
24248
24511
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
24249
24512
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
24513
+ type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
24250
24514
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
24251
24515
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
24252
24516
  type Settings = Electron.Settings;
@@ -24383,6 +24647,12 @@ declare namespace Electron {
24383
24647
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
24384
24648
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
24385
24649
  type SharedTextureHandle = Electron.SharedTextureHandle;
24650
+ type SharedTextureImported = Electron.SharedTextureImported;
24651
+ type SharedTextureImportedSubtle = Electron.SharedTextureImportedSubtle;
24652
+ type SharedTextureImportTextureInfo = Electron.SharedTextureImportTextureInfo;
24653
+ type SharedTextureSubtle = Electron.SharedTextureSubtle;
24654
+ type SharedTextureSyncToken = Electron.SharedTextureSyncToken;
24655
+ type SharedTextureTransfer = Electron.SharedTextureTransfer;
24386
24656
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
24387
24657
  type SharingItem = Electron.SharingItem;
24388
24658
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -24492,6 +24762,7 @@ declare namespace Electron {
24492
24762
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
24493
24763
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
24494
24764
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
24765
+ type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
24495
24766
  type Info = Electron.Info;
24496
24767
  type Input = Electron.Input;
24497
24768
  type InsertCSSOptions = Electron.InsertCSSOptions;
@@ -24545,6 +24816,7 @@ declare namespace Electron {
24545
24816
  type Provider = Electron.Provider;
24546
24817
  type PurchaseProductOpts = Electron.PurchaseProductOpts;
24547
24818
  type ReadBookmark = Electron.ReadBookmark;
24819
+ type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
24548
24820
  type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
24549
24821
  type RelaunchOptions = Electron.RelaunchOptions;
24550
24822
  type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
@@ -24560,6 +24832,7 @@ declare namespace Electron {
24560
24832
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
24561
24833
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
24562
24834
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
24835
+ type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
24563
24836
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
24564
24837
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
24565
24838
  type Settings = Electron.Settings;
@@ -24696,6 +24969,12 @@ declare namespace Electron {
24696
24969
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
24697
24970
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
24698
24971
  type SharedTextureHandle = Electron.SharedTextureHandle;
24972
+ type SharedTextureImported = Electron.SharedTextureImported;
24973
+ type SharedTextureImportedSubtle = Electron.SharedTextureImportedSubtle;
24974
+ type SharedTextureImportTextureInfo = Electron.SharedTextureImportTextureInfo;
24975
+ type SharedTextureSubtle = Electron.SharedTextureSubtle;
24976
+ type SharedTextureSyncToken = Electron.SharedTextureSyncToken;
24977
+ type SharedTextureTransfer = Electron.SharedTextureTransfer;
24699
24978
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
24700
24979
  type SharingItem = Electron.SharingItem;
24701
24980
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -24804,6 +25083,7 @@ declare namespace Electron {
24804
25083
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
24805
25084
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
24806
25085
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
25086
+ type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
24807
25087
  type Info = Electron.Info;
24808
25088
  type Input = Electron.Input;
24809
25089
  type InsertCSSOptions = Electron.InsertCSSOptions;
@@ -24857,6 +25137,7 @@ declare namespace Electron {
24857
25137
  type Provider = Electron.Provider;
24858
25138
  type PurchaseProductOpts = Electron.PurchaseProductOpts;
24859
25139
  type ReadBookmark = Electron.ReadBookmark;
25140
+ type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
24860
25141
  type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
24861
25142
  type RelaunchOptions = Electron.RelaunchOptions;
24862
25143
  type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
@@ -24872,6 +25153,7 @@ declare namespace Electron {
24872
25153
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
24873
25154
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
24874
25155
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
25156
+ type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
24875
25157
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
24876
25158
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
24877
25159
  type Settings = Electron.Settings;
@@ -25008,6 +25290,12 @@ declare namespace Electron {
25008
25290
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
25009
25291
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
25010
25292
  type SharedTextureHandle = Electron.SharedTextureHandle;
25293
+ type SharedTextureImported = Electron.SharedTextureImported;
25294
+ type SharedTextureImportedSubtle = Electron.SharedTextureImportedSubtle;
25295
+ type SharedTextureImportTextureInfo = Electron.SharedTextureImportTextureInfo;
25296
+ type SharedTextureSubtle = Electron.SharedTextureSubtle;
25297
+ type SharedTextureSyncToken = Electron.SharedTextureSyncToken;
25298
+ type SharedTextureTransfer = Electron.SharedTextureTransfer;
25011
25299
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
25012
25300
  type SharingItem = Electron.SharingItem;
25013
25301
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -25100,6 +25388,8 @@ declare namespace Electron {
25100
25388
  type ServiceWorkers = Electron.ServiceWorkers;
25101
25389
  const session: typeof Session;
25102
25390
  type Session = Electron.Session;
25391
+ const sharedTexture: SharedTexture;
25392
+ type SharedTexture = Electron.SharedTexture;
25103
25393
  class ShareMenu extends Electron.ShareMenu {}
25104
25394
  const shell: Shell;
25105
25395
  type Shell = Electron.Shell;
@@ -25208,6 +25498,7 @@ declare namespace Electron {
25208
25498
  type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
25209
25499
  type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
25210
25500
  type ImportCertificateOptions = Electron.ImportCertificateOptions;
25501
+ type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
25211
25502
  type Info = Electron.Info;
25212
25503
  type Input = Electron.Input;
25213
25504
  type InsertCSSOptions = Electron.InsertCSSOptions;
@@ -25261,6 +25552,7 @@ declare namespace Electron {
25261
25552
  type Provider = Electron.Provider;
25262
25553
  type PurchaseProductOpts = Electron.PurchaseProductOpts;
25263
25554
  type ReadBookmark = Electron.ReadBookmark;
25555
+ type ReceivedSharedTextureData = Electron.ReceivedSharedTextureData;
25264
25556
  type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
25265
25557
  type RelaunchOptions = Electron.RelaunchOptions;
25266
25558
  type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
@@ -25276,6 +25568,7 @@ declare namespace Electron {
25276
25568
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
25277
25569
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
25278
25570
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
25571
+ type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
25279
25572
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
25280
25573
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
25281
25574
  type Settings = Electron.Settings;
@@ -25412,6 +25705,12 @@ declare namespace Electron {
25412
25705
  type SharedDictionaryInfo = Electron.SharedDictionaryInfo;
25413
25706
  type SharedDictionaryUsageInfo = Electron.SharedDictionaryUsageInfo;
25414
25707
  type SharedTextureHandle = Electron.SharedTextureHandle;
25708
+ type SharedTextureImported = Electron.SharedTextureImported;
25709
+ type SharedTextureImportedSubtle = Electron.SharedTextureImportedSubtle;
25710
+ type SharedTextureImportTextureInfo = Electron.SharedTextureImportTextureInfo;
25711
+ type SharedTextureSubtle = Electron.SharedTextureSubtle;
25712
+ type SharedTextureSyncToken = Electron.SharedTextureSyncToken;
25713
+ type SharedTextureTransfer = Electron.SharedTextureTransfer;
25415
25714
  type SharedWorkerInfo = Electron.SharedWorkerInfo;
25416
25715
  type SharingItem = Electron.SharingItem;
25417
25716
  type ShortcutDetails = Electron.ShortcutDetails;
@@ -25457,6 +25756,7 @@ declare namespace Electron {
25457
25756
  const safeStorage: SafeStorage;
25458
25757
  const screen: Screen;
25459
25758
  const session: typeof Session;
25759
+ const sharedTexture: SharedTexture;
25460
25760
  const shell: Shell;
25461
25761
  const systemPreferences: SystemPreferences;
25462
25762
  const utilityProcess: typeof UtilityProcess;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "40.0.0-alpha.4",
3
- "extractedAt": "2025-12-24T03:15:56.379Z"
2
+ "electronVersion": "40.0.0-alpha.6",
3
+ "extractedAt": "2025-12-24T03:15:41.549Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "40.0.0-alpha.4",
3
+ "version": "40.0.0-alpha.6",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",