electron-types 41.0.2 → 42.0.0-alpha.2

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@41.0.2
14
+ npm install -D electron-types@42.0.0-alpha.2
15
15
  # or
16
- yarn add -D electron-types@41.0.2
16
+ yarn add -D electron-types@42.0.0-alpha.2
17
17
  # or
18
- pnpm add -D electron-types@41.0.2
18
+ pnpm add -D electron-types@42.0.0-alpha.2
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 41.0.2
1
+ // Type definitions for Electron 42.0.0-alpha.2
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
@@ -18,6 +18,33 @@ declare namespace Electron {
18
18
  readonly defaultPrevented: boolean;
19
19
  } & Params;
20
20
 
21
+ interface ActivationArguments {
22
+
23
+ // Docs: https://electronjs.org/docs/api/structures/activation-arguments
24
+
25
+ /**
26
+ * For `'action'` type, the index of the button that was clicked.
27
+ */
28
+ actionIndex?: number;
29
+ /**
30
+ * The raw activation arguments string from Windows.
31
+ */
32
+ arguments: string;
33
+ /**
34
+ * For `'reply'` type, the text the user entered in the reply field.
35
+ */
36
+ reply?: string;
37
+ /**
38
+ * The type of activation that launched the app: `'click'`, `'action'`, or
39
+ * `'reply'`.
40
+ */
41
+ type: string;
42
+ /**
43
+ * A dictionary of all user inputs from the notification.
44
+ */
45
+ userInputs?: Record<string, string>;
46
+ }
47
+
21
48
  interface App extends NodeJS.EventEmitter {
22
49
 
23
50
  // Docs: https://electronjs.org/docs/api/app
@@ -1360,6 +1387,12 @@ declare namespace Electron {
1360
1387
  * @platform darwin,win32
1361
1388
  */
1362
1389
  isAccessibilitySupportEnabled(): boolean;
1390
+ /**
1391
+ * `true` if the application is active (i.e. focused).
1392
+ *
1393
+ * @platform darwin
1394
+ */
1395
+ isActive(): boolean;
1363
1396
  /**
1364
1397
  * Whether the current executable is the default handler for a protocol (aka URI
1365
1398
  * scheme).
@@ -7207,12 +7240,12 @@ declare namespace Electron {
7207
7240
  */
7208
7241
  removed: boolean) => void): this;
7209
7242
  /**
7210
- * A promise which resolves when the cookie store has been flushed
7243
+ * A promise which resolves when the cookie store has been flushed.
7211
7244
  *
7212
- * Writes any unwritten cookies data to disk
7245
+ * Writes any unwritten cookies data to disk.
7213
7246
  *
7214
7247
  * Cookies written by any method will not be written to disk immediately, but will
7215
- * be written every 30 seconds or 512 operations
7248
+ * be written every 30 seconds or 512 operations.
7216
7249
  *
7217
7250
  * Calling this method can cause the cookie to be written to disk immediately.
7218
7251
  */
@@ -7225,13 +7258,13 @@ declare namespace Electron {
7225
7258
  */
7226
7259
  get(filter: CookiesGetFilter): Promise<Electron.Cookie[]>;
7227
7260
  /**
7228
- * A promise which resolves when the cookie has been removed
7261
+ * A promise which resolves when the cookie has been removed.
7229
7262
  *
7230
- * Removes the cookies matching `url` and `name`
7263
+ * Removes the cookies matching `url` and `name`.
7231
7264
  */
7232
7265
  remove(url: string, name: string): Promise<void>;
7233
7266
  /**
7234
- * A promise which resolves when the cookie has been set
7267
+ * A promise which resolves when the cookie has been set.
7235
7268
  *
7236
7269
  * Sets a cookie with `details`.
7237
7270
  */
@@ -10286,6 +10319,34 @@ declare namespace Electron {
10286
10319
  * Notification
10287
10320
  */
10288
10321
  constructor(options?: NotificationConstructorOptions);
10322
+ /**
10323
+ * Registers a callback to handle all notification activations. The callback is
10324
+ * invoked whenever a notification is clicked, replied to, or has an action button
10325
+ * pressed - regardless of whether the original `Notification` object is still in
10326
+ * memory.
10327
+ *
10328
+ * This method handles timing automatically:
10329
+ *
10330
+ * * If an activation already occurred before calling this method, the callback is
10331
+ * invoked immediately with those details.
10332
+ * * For all subsequent activations, the callback is invoked when they occur.
10333
+ *
10334
+ * The callback remains registered until replaced by another call to
10335
+ * `handleActivation`.
10336
+ *
10337
+ * This provides a centralized way to handle notification interactions that works
10338
+ * in all scenarios:
10339
+ *
10340
+ * * Cold start (app launched from notification click)
10341
+ * * Notifications persisted in AC that have no in-memory representation after app
10342
+ * re-start
10343
+ * * Notification object was garbage collected
10344
+ * * Notification object is still in memory (callback is invoked in addition to
10345
+ * instance events)
10346
+ *
10347
+ * @platform win32
10348
+ */
10349
+ static handleActivation(callback: (details: ActivationArguments) => void): void;
10289
10350
  /**
10290
10351
  * Whether or not desktop notifications are supported on the current system
10291
10352
  */
@@ -10321,10 +10382,26 @@ declare namespace Electron {
10321
10382
  * A `string` property representing the close button text of the notification.
10322
10383
  */
10323
10384
  closeButtonText: string;
10385
+ /**
10386
+ * A `string` property representing the group identifier of the notification.
10387
+ * Notifications with the same `groupId` will be visually grouped together in
10388
+ * Notification Center.
10389
+ *
10390
+ * @platform darwin
10391
+ */
10392
+ readonly groupId: string;
10324
10393
  /**
10325
10394
  * A `boolean` property representing whether the notification has a reply action.
10326
10395
  */
10327
10396
  hasReply: boolean;
10397
+ /**
10398
+ * A `string` property representing the unique identifier of the notification. This
10399
+ * is set at construction time — either from the `id` option or as a generated UUID
10400
+ * if none was provided.
10401
+ *
10402
+ * @platform darwin
10403
+ */
10404
+ readonly id: string;
10328
10405
  /**
10329
10406
  * A `string` property representing the reply placeholder of the notification.
10330
10407
  */
@@ -11542,16 +11619,28 @@ declare namespace Electron {
11542
11619
  /**
11543
11620
  * the decrypted string. Decrypts the encrypted buffer obtained with
11544
11621
  * `safeStorage.encryptString` back into a string.
11545
- *
11546
- * This function will throw an error if decryption fails.
11547
11622
  */
11548
11623
  decryptString(encrypted: Buffer): string;
11624
+ /**
11625
+ * Resolve with an object containing the following:
11626
+ *
11627
+ * * `shouldReEncrypt` boolean - whether data that has just been returned from the
11628
+ * decrypt operation should be re-encrypted, as the key has been rotated or a new
11629
+ * key is available that provides a different security level. If `true`, you should
11630
+ * call `decryptStringAsync` again to receive the new decrypted string.
11631
+ * * `result` string - the decrypted string.
11632
+ */
11633
+ decryptStringAsync(encrypted: Buffer): Promise<Electron.DecryptStringAsyncReturnValue>;
11549
11634
  /**
11550
11635
  * An array of bytes representing the encrypted string.
11551
11636
  *
11552
11637
  * This function will throw an error if encryption fails.
11553
11638
  */
11554
11639
  encryptString(plainText: string): Buffer;
11640
+ /**
11641
+ * An array of bytes representing the encrypted string.
11642
+ */
11643
+ encryptStringAsync(plainText: string): Promise<Buffer>;
11555
11644
  /**
11556
11645
  * User friendly name of the password manager selected on Linux.
11557
11646
  *
@@ -11574,6 +11663,10 @@ declare namespace Electron {
11574
11663
  * @platform linux
11575
11664
  */
11576
11665
  getSelectedStorageBackend(): ('basic_text' | 'gnome_libsecret' | 'kwallet' | 'kwallet5' | 'kwallet6' | 'unknown');
11666
+ /**
11667
+ * Whether encryption is available for asynchronous safeStorage operations.
11668
+ */
11669
+ isAsyncEncryptionAvailable(): Promise<boolean>;
11577
11670
  /**
11578
11671
  * Whether encryption is available.
11579
11672
  *
@@ -13288,7 +13381,7 @@ declare namespace Electron {
13288
13381
  /**
13289
13382
  * The pixel format of the texture.
13290
13383
  */
13291
- pixelFormat: ('bgra' | 'rgba' | 'rgbaf16' | 'nv12');
13384
+ pixelFormat: ('bgra' | 'rgba' | 'rgbaf16' | 'nv12' | 'p010le');
13292
13385
  /**
13293
13386
  * A timestamp in microseconds that will be reflected to `VideoFrame`.
13294
13387
  */
@@ -15492,7 +15585,7 @@ declare namespace Electron {
15492
15585
  * > [!NOTE] The area cutout of the view's border still captures clicks.
15493
15586
  */
15494
15587
  setBorderRadius(radius: number): void;
15495
- setBounds(bounds: Rectangle): void;
15588
+ setBounds(bounds: Rectangle, options?: BoundsOptions): void;
15496
15589
  setVisible(visible: boolean): void;
15497
15590
  /**
15498
15591
  * A `View[]` property representing the child views of this view.
@@ -19941,6 +20034,14 @@ declare namespace Electron {
19941
20034
  pin?: string;
19942
20035
  }
19943
20036
 
20037
+ interface BoundsOptions {
20038
+ /**
20039
+ * If true, the bounds change will be animated. If an object is passed, it can
20040
+ * contain the following properties:
20041
+ */
20042
+ animate?: (boolean) | (Animate);
20043
+ }
20044
+
19944
20045
  interface BrowserViewConstructorOptions {
19945
20046
  /**
19946
20047
  * Settings of web page's features.
@@ -20029,11 +20130,6 @@ declare namespace Electron {
20029
20130
  * not specified, clear all storage types.
20030
20131
  */
20031
20132
  storages?: Array<'cookies' | 'filesystem' | 'indexdb' | 'localstorage' | 'shadercache' | 'websql' | 'serviceworkers' | 'cachestorage'>;
20032
- /**
20033
- * The types of quotas to clear, can be `temporary`. If not specified, clear all
20034
- * quotas.
20035
- */
20036
- quotas?: Array<'temporary'>;
20037
20133
  }
20038
20134
 
20039
20135
  interface ClientCertRequestParams {
@@ -20637,6 +20733,20 @@ declare namespace Electron {
20637
20733
  bookmark?: string;
20638
20734
  }
20639
20735
 
20736
+ interface DecryptStringAsyncReturnValue {
20737
+ /**
20738
+ * whether data that has just been returned from the decrypt operation should be
20739
+ * re-encrypted, as the key has been rotated or a new key is available that
20740
+ * provides a different security level. If `true`, you should call
20741
+ * `decryptStringAsync` again to receive the new decrypted string.
20742
+ */
20743
+ shouldReEncrypt: boolean;
20744
+ /**
20745
+ * the decrypted string.
20746
+ */
20747
+ result: string;
20748
+ }
20749
+
20640
20750
  interface DefaultFontFamily {
20641
20751
  /**
20642
20752
  * Defaults to `Times New Roman`.
@@ -21784,6 +21894,23 @@ declare namespace Electron {
21784
21894
  }
21785
21895
 
21786
21896
  interface NotificationConstructorOptions {
21897
+ /**
21898
+ * A unique identifier for the notification, mapping to `UNNotificationRequest`'s
21899
+ * `identifier` property. Defaults to a random UUID if not provided or if an empty
21900
+ * string is passed. This can be used to remove or update previously delivered
21901
+ * notifications.
21902
+ *
21903
+ * @platform darwin
21904
+ */
21905
+ id?: string;
21906
+ /**
21907
+ * A string identifier used to visually group notifications together in
21908
+ * Notification Center. Maps to `UNNotificationContent`'s `threadIdentifier`
21909
+ * property.
21910
+ *
21911
+ * @platform darwin
21912
+ */
21913
+ groupId?: string;
21787
21914
  /**
21788
21915
  * A title for the notification, which will be displayed at the top of the
21789
21916
  * notification window when it is shown.
@@ -21888,6 +22015,13 @@ declare namespace Electron {
21888
22015
  * @experimental
21889
22016
  */
21890
22017
  sharedTexturePixelFormat?: ('argb' | 'rgbaf16');
22018
+ /**
22019
+ * The device scale factor of the offscreen rendering output. If not set, will use
22020
+ * `1` as default.
22021
+ *
22022
+ * @experimental
22023
+ */
22024
+ deviceScaleFactor?: number;
21891
22025
  }
21892
22026
 
21893
22027
  interface OnBeforeRedirectListenerDetails {
@@ -23745,6 +23879,17 @@ declare namespace Electron {
23745
23879
  edge: ('bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right');
23746
23880
  }
23747
23881
 
23882
+ interface Animate {
23883
+ /**
23884
+ * Duration of the animation in milliseconds. Default is `250`.
23885
+ */
23886
+ duration?: number;
23887
+ /**
23888
+ * Easing function for the animation. Default is `linear`.
23889
+ */
23890
+ easing?: ('linear' | 'ease-in' | 'ease-out' | 'ease-in-out');
23891
+ }
23892
+
23748
23893
  interface Children {
23749
23894
  }
23750
23895
 
@@ -24204,6 +24349,7 @@ declare namespace Electron {
24204
24349
  type BitmapOptions = Electron.BitmapOptions;
24205
24350
  type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
24206
24351
  type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
24352
+ type BoundsOptions = Electron.BoundsOptions;
24207
24353
  type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
24208
24354
  type CallbackResponse = Electron.CallbackResponse;
24209
24355
  type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
@@ -24230,6 +24376,7 @@ declare namespace Electron {
24230
24376
  type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
24231
24377
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
24232
24378
  type Data = Electron.Data;
24379
+ type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
24233
24380
  type DefaultFontFamily = Electron.DefaultFontFamily;
24234
24381
  type Details = Electron.Details;
24235
24382
  type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
@@ -24391,6 +24538,7 @@ declare namespace Electron {
24391
24538
  type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
24392
24539
  type WillNavigateEvent = Electron.WillNavigateEvent;
24393
24540
  type WillResizeDetails = Electron.WillResizeDetails;
24541
+ type Animate = Electron.Animate;
24394
24542
  type Children = Electron.Children;
24395
24543
  type EditFlags = Electron.EditFlags;
24396
24544
  type Env = Electron.Env;
@@ -24412,6 +24560,7 @@ declare namespace Electron {
24412
24560
  type Endpoints = Electron.Endpoints;
24413
24561
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
24414
24562
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
24563
+ type ActivationArguments = Electron.ActivationArguments;
24415
24564
  type BluetoothDevice = Electron.BluetoothDevice;
24416
24565
  type Certificate = Electron.Certificate;
24417
24566
  type CertificatePrincipal = Electron.CertificatePrincipal;
@@ -24601,6 +24750,7 @@ declare namespace Electron {
24601
24750
  type BitmapOptions = Electron.BitmapOptions;
24602
24751
  type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
24603
24752
  type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
24753
+ type BoundsOptions = Electron.BoundsOptions;
24604
24754
  type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
24605
24755
  type CallbackResponse = Electron.CallbackResponse;
24606
24756
  type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
@@ -24627,6 +24777,7 @@ declare namespace Electron {
24627
24777
  type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
24628
24778
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
24629
24779
  type Data = Electron.Data;
24780
+ type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
24630
24781
  type DefaultFontFamily = Electron.DefaultFontFamily;
24631
24782
  type Details = Electron.Details;
24632
24783
  type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
@@ -24788,6 +24939,7 @@ declare namespace Electron {
24788
24939
  type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
24789
24940
  type WillNavigateEvent = Electron.WillNavigateEvent;
24790
24941
  type WillResizeDetails = Electron.WillResizeDetails;
24942
+ type Animate = Electron.Animate;
24791
24943
  type Children = Electron.Children;
24792
24944
  type EditFlags = Electron.EditFlags;
24793
24945
  type Env = Electron.Env;
@@ -24809,6 +24961,7 @@ declare namespace Electron {
24809
24961
  type Endpoints = Electron.Endpoints;
24810
24962
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
24811
24963
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
24964
+ type ActivationArguments = Electron.ActivationArguments;
24812
24965
  type BluetoothDevice = Electron.BluetoothDevice;
24813
24966
  type Certificate = Electron.Certificate;
24814
24967
  type CertificatePrincipal = Electron.CertificatePrincipal;
@@ -24926,6 +25079,7 @@ declare namespace Electron {
24926
25079
  type BitmapOptions = Electron.BitmapOptions;
24927
25080
  type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
24928
25081
  type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
25082
+ type BoundsOptions = Electron.BoundsOptions;
24929
25083
  type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
24930
25084
  type CallbackResponse = Electron.CallbackResponse;
24931
25085
  type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
@@ -24952,6 +25106,7 @@ declare namespace Electron {
24952
25106
  type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
24953
25107
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
24954
25108
  type Data = Electron.Data;
25109
+ type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
24955
25110
  type DefaultFontFamily = Electron.DefaultFontFamily;
24956
25111
  type Details = Electron.Details;
24957
25112
  type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
@@ -25113,6 +25268,7 @@ declare namespace Electron {
25113
25268
  type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
25114
25269
  type WillNavigateEvent = Electron.WillNavigateEvent;
25115
25270
  type WillResizeDetails = Electron.WillResizeDetails;
25271
+ type Animate = Electron.Animate;
25116
25272
  type Children = Electron.Children;
25117
25273
  type EditFlags = Electron.EditFlags;
25118
25274
  type Env = Electron.Env;
@@ -25134,6 +25290,7 @@ declare namespace Electron {
25134
25290
  type Endpoints = Electron.Endpoints;
25135
25291
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
25136
25292
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
25293
+ type ActivationArguments = Electron.ActivationArguments;
25137
25294
  type BluetoothDevice = Electron.BluetoothDevice;
25138
25295
  type Certificate = Electron.Certificate;
25139
25296
  type CertificatePrincipal = Electron.CertificatePrincipal;
@@ -25250,6 +25407,7 @@ declare namespace Electron {
25250
25407
  type BitmapOptions = Electron.BitmapOptions;
25251
25408
  type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
25252
25409
  type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
25410
+ type BoundsOptions = Electron.BoundsOptions;
25253
25411
  type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
25254
25412
  type CallbackResponse = Electron.CallbackResponse;
25255
25413
  type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
@@ -25276,6 +25434,7 @@ declare namespace Electron {
25276
25434
  type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
25277
25435
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
25278
25436
  type Data = Electron.Data;
25437
+ type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
25279
25438
  type DefaultFontFamily = Electron.DefaultFontFamily;
25280
25439
  type Details = Electron.Details;
25281
25440
  type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
@@ -25437,6 +25596,7 @@ declare namespace Electron {
25437
25596
  type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
25438
25597
  type WillNavigateEvent = Electron.WillNavigateEvent;
25439
25598
  type WillResizeDetails = Electron.WillResizeDetails;
25599
+ type Animate = Electron.Animate;
25440
25600
  type Children = Electron.Children;
25441
25601
  type EditFlags = Electron.EditFlags;
25442
25602
  type Env = Electron.Env;
@@ -25458,6 +25618,7 @@ declare namespace Electron {
25458
25618
  type Endpoints = Electron.Endpoints;
25459
25619
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
25460
25620
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
25621
+ type ActivationArguments = Electron.ActivationArguments;
25461
25622
  type BluetoothDevice = Electron.BluetoothDevice;
25462
25623
  type Certificate = Electron.Certificate;
25463
25624
  type CertificatePrincipal = Electron.CertificatePrincipal;
@@ -25668,6 +25829,7 @@ declare namespace Electron {
25668
25829
  type BitmapOptions = Electron.BitmapOptions;
25669
25830
  type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
25670
25831
  type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
25832
+ type BoundsOptions = Electron.BoundsOptions;
25671
25833
  type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
25672
25834
  type CallbackResponse = Electron.CallbackResponse;
25673
25835
  type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
@@ -25694,6 +25856,7 @@ declare namespace Electron {
25694
25856
  type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
25695
25857
  type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
25696
25858
  type Data = Electron.Data;
25859
+ type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
25697
25860
  type DefaultFontFamily = Electron.DefaultFontFamily;
25698
25861
  type Details = Electron.Details;
25699
25862
  type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
@@ -25855,6 +26018,7 @@ declare namespace Electron {
25855
26018
  type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
25856
26019
  type WillNavigateEvent = Electron.WillNavigateEvent;
25857
26020
  type WillResizeDetails = Electron.WillResizeDetails;
26021
+ type Animate = Electron.Animate;
25858
26022
  type Children = Electron.Children;
25859
26023
  type EditFlags = Electron.EditFlags;
25860
26024
  type Env = Electron.Env;
@@ -25876,6 +26040,7 @@ declare namespace Electron {
25876
26040
  type Endpoints = Electron.Endpoints;
25877
26041
  type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
25878
26042
  type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
26043
+ type ActivationArguments = Electron.ActivationArguments;
25879
26044
  type BluetoothDevice = Electron.BluetoothDevice;
25880
26045
  type Certificate = Electron.Certificate;
25881
26046
  type CertificatePrincipal = Electron.CertificatePrincipal;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "41.0.2",
3
- "extractedAt": "2026-03-13T12:21:51.932Z"
2
+ "electronVersion": "42.0.0-alpha.2",
3
+ "extractedAt": "2026-03-17T06:33:08.173Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "41.0.2",
3
+ "version": "42.0.0-alpha.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",