electron-types 41.3.0 → 41.5.0

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.3.0
14
+ npm install -D electron-types@41.5.0
15
15
  # or
16
- yarn add -D electron-types@41.3.0
16
+ yarn add -D electron-types@41.5.0
17
17
  # or
18
- pnpm add -D electron-types@41.3.0
18
+ pnpm add -D electron-types@41.5.0
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 41.3.0
1
+ // Type definitions for Electron 41.5.0
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
@@ -1015,6 +1015,26 @@ declare namespace Electron {
1015
1015
  * This API must be called after the `ready` event is emitted.
1016
1016
  */
1017
1017
  configureHostResolver(options: ConfigureHostResolverOptions): void;
1018
+ /**
1019
+ * Configures platform authenticators for the Web Authentication API
1020
+ * (`navigator.credentials.create()` / `navigator.credentials.get()`). Until this
1021
+ * is called, `PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()`
1022
+ * resolves to `false` and platform-authenticator requests are not serviced.
1023
+ *
1024
+ * When `touchID` is provided, WebAuthn credentials are stored in the macOS
1025
+ * keychain and bound to this device's Secure Enclave. Electron automatically
1026
+ * generates and persists a per-`session` metadata secret so that credentials
1027
+ * created in one partition are not visible to another.
1028
+ *
1029
+ * With the matching entitlement in your app's `entitlements.plist`:
1030
+ *
1031
+ * > [!NOTE] Touch ID WebAuthn credentials are device-bound and are not synced via
1032
+ * iCloud Keychain. They are only available on Macs with a Secure Enclave (Apple
1033
+ * silicon, or Intel Macs with a T2 chip).
1034
+ *
1035
+ * @platform darwin
1036
+ */
1037
+ configureWebAuthn(options: ConfigureWebAuthnOptions): void;
1018
1038
  /**
1019
1039
  * By default, Chromium disables 3D APIs (e.g. WebGL) until restart on a per domain
1020
1040
  * basis if the GPU process crashes too frequently. This function disables that
@@ -7013,6 +7033,34 @@ declare namespace Electron {
7013
7033
 
7014
7034
  // Docs: https://electronjs.org/docs/api/content-tracing
7015
7035
 
7036
+ /**
7037
+ * Resolves once heap profiling has been enabled.
7038
+ *
7039
+ * Enable heap profiling for MemoryInfra traces. Equivalent to the `--memlog`
7040
+ * switch in Chrome.
7041
+ *
7042
+ * Only takes effect if the `disabled-by-default-memory-infra` category is
7043
+ * included.
7044
+ *
7045
+ * Needs to be called before `contentTracing.startRecording()`.
7046
+ *
7047
+ * Usage:
7048
+ *
7049
+ * To view the recorded heap dumps:
7050
+ *
7051
+ * * Download the breakpad symbols for your Electron version from the Electron
7052
+ * GitHub releases
7053
+ * * Clone the Electron source code
7054
+ * * In your Chromium checkout for Electron, run this command to symbolicate the
7055
+ * heap dump:
7056
+ * * Open the symbolicated trace in `chrome://tracing` (the Perfetto UI does not
7057
+ * support memory dumps yet)
7058
+ * * Click on one of the `M` symbols
7059
+ * * Click on a `☰` triple bar icon (e.g., in the `malloc` column)
7060
+ *
7061
+ * @experimental
7062
+ */
7063
+ enableHeapProfiling(options?: EnableHeapProfilingOptions): Promise<void>;
7016
7064
  /**
7017
7065
  * resolves with an array of category groups once all child processes have
7018
7066
  * acknowledged the `getCategories` request
@@ -8193,6 +8241,32 @@ declare namespace Electron {
8193
8241
  savePath: string;
8194
8242
  }
8195
8243
 
8244
+ interface EnableHeapProfilingOptions {
8245
+
8246
+ // Docs: https://electronjs.org/docs/api/structures/enable-heap-profiling-options
8247
+
8248
+ /**
8249
+ * Controls which processes are profiled. Equivalent to `--memlog` in Chrome.
8250
+ * Default is `all`.
8251
+ */
8252
+ mode?: ('all' | 'browser' | 'gpu' | 'minimal' | 'renderer-sampling' | 'all-renderers' | 'utility-sampling' | 'all-utilities' | 'utility-and-browser');
8253
+ /**
8254
+ * Controls the sampling interval in bytes. The lower the interval, the more
8255
+ * precise the profile is. However it comes at the cost of performance. Default is
8256
+ * `100000` (100KB). That is enough to observe allocation sites that make
8257
+ * allocations >500KB total, where total equals to a single allocation size times
8258
+ * the number of such allocations at the same call site. Equivalent to
8259
+ * `--memlog-sampling-rate` in Chrome. Must be an integer between `1000` and
8260
+ * `10000000`.
8261
+ */
8262
+ samplingRate?: number;
8263
+ /**
8264
+ * Controls the type of metadata recorded for each allocation. Equivalent to
8265
+ * `--memlog-stack-mode` in Chrome. Default is `native`.
8266
+ */
8267
+ stackMode?: ('native' | 'native-with-thread-names');
8268
+ }
8269
+
8196
8270
  interface Extension {
8197
8271
 
8198
8272
  // Docs: https://electronjs.org/docs/api/structures/extension
@@ -12265,6 +12339,37 @@ declare namespace Electron {
12265
12339
  removeListener(event: 'select-usb-device', listener: (event: Event,
12266
12340
  details: SelectUsbDeviceDetails,
12267
12341
  callback: (deviceId?: string) => void) => void): this;
12342
+ /**
12343
+ * Emitted when a call to `navigator.credentials.get()` resolves multiple
12344
+ * discoverable WebAuthn credentials and the user must choose one. `callback`
12345
+ * should be called with the `credentialId` of the selected account; passing no
12346
+ * arguments — or a `credentialId` that does not match one of the provided accounts
12347
+ * — will cancel the request and the page will receive a `NotAllowedError`. If no
12348
+ * listener is registered for this event, the request is cancelled with the same
12349
+ * error. The credential request remains pending until the listener invokes the
12350
+ * callback, so always invoke it exactly once — typically from a `try { … } finally
12351
+ * { callback(…) }` block.
12352
+ *
12353
+ * On macOS, the Touch ID platform authenticator surfaces accounts via this event
12354
+ * once it has been configured with `app.configureWebAuthn`. The event may also
12355
+ * fire on other platforms when a roaming FIDO2 authenticator returns multiple
12356
+ * discoverable credentials.
12357
+ */
12358
+ on(event: 'select-webauthn-account', listener: (event: Event,
12359
+ details: SelectWebauthnAccountDetails,
12360
+ callback: (credentialId?: (string) | (null)) => void) => void): this;
12361
+ off(event: 'select-webauthn-account', listener: (event: Event,
12362
+ details: SelectWebauthnAccountDetails,
12363
+ callback: (credentialId?: (string) | (null)) => void) => void): this;
12364
+ once(event: 'select-webauthn-account', listener: (event: Event,
12365
+ details: SelectWebauthnAccountDetails,
12366
+ callback: (credentialId?: (string) | (null)) => void) => void): this;
12367
+ addListener(event: 'select-webauthn-account', listener: (event: Event,
12368
+ details: SelectWebauthnAccountDetails,
12369
+ callback: (credentialId?: (string) | (null)) => void) => void): this;
12370
+ removeListener(event: 'select-webauthn-account', listener: (event: Event,
12371
+ details: SelectWebauthnAccountDetails,
12372
+ callback: (credentialId?: (string) | (null)) => void) => void): this;
12268
12373
  /**
12269
12374
  * Emitted after `navigator.serial.requestPort` has been called and
12270
12375
  * `select-serial-port` has fired if a new serial port becomes available before the
@@ -15508,6 +15613,32 @@ declare namespace Electron {
15508
15613
  readonly children: View[];
15509
15614
  }
15510
15615
 
15616
+ interface WebAuthnAccount {
15617
+
15618
+ // Docs: https://electronjs.org/docs/api/structures/webauthn-account
15619
+
15620
+ /**
15621
+ * URL-safe base64-encoded (no padding) credential ID of the discoverable
15622
+ * credential. Matches `PublicKeyCredential.id` returned by
15623
+ * `navigator.credentials.get()` in the renderer.
15624
+ */
15625
+ credentialId: string;
15626
+ /**
15627
+ * Human-palatable name for the account, intended for display.
15628
+ */
15629
+ displayName?: string;
15630
+ /**
15631
+ * Human-palatable identifier for the account (for example, an email address or
15632
+ * username).
15633
+ */
15634
+ name?: string;
15635
+ /**
15636
+ * URL-safe base64-encoded (no padding) user handle (`user.id`) that was provided
15637
+ * when the credential was created.
15638
+ */
15639
+ userHandle?: string;
15640
+ }
15641
+
15511
15642
  class WebContents extends NodeEventEmitter {
15512
15643
 
15513
15644
  // Docs: https://electronjs.org/docs/api/web-contents
@@ -20291,6 +20422,14 @@ declare namespace Electron {
20291
20422
  enableAdditionalDnsQueryTypes?: boolean;
20292
20423
  }
20293
20424
 
20425
+ interface ConfigureWebAuthnOptions {
20426
+ /**
20427
+ * Enables the Touch ID / Secure Enclave platform authenticator for Web
20428
+ * Authentication requests.
20429
+ */
20430
+ touchID?: TouchId;
20431
+ }
20432
+
20294
20433
  interface ConsoleMessageEvent extends DOMEvent {
20295
20434
  /**
20296
20435
  * The log level, from 0 to 3. In order it matches `verbose`, `info`, `warning` and
@@ -20765,6 +20904,8 @@ declare namespace Electron {
20765
20904
  postBody?: PostBody;
20766
20905
  /**
20767
20906
  * Can be `default`, `foreground-tab`, `background-tab`, `new-window` or `other`.
20907
+ * Corresponds to the manner an associated link was clicked. See Chromium's
20908
+ * WindowOpenDisposition.
20768
20909
  */
20769
20910
  disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'other');
20770
20911
  }
@@ -21096,6 +21237,8 @@ declare namespace Electron {
21096
21237
  features: string;
21097
21238
  /**
21098
21239
  * Can be `default`, `foreground-tab`, `background-tab`, `new-window` or `other`.
21240
+ * Corresponds to the manner an associated link was clicked. See Chromium's
21241
+ * WindowOpenDisposition.
21099
21242
  */
21100
21243
  disposition: ('default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'other');
21101
21244
  /**
@@ -21895,6 +22038,13 @@ declare namespace Electron {
21895
22038
  * @experimental
21896
22039
  */
21897
22040
  sharedTexturePixelFormat?: ('argb' | 'rgbaf16');
22041
+ /**
22042
+ * The device scale factor of the offscreen rendering output. If not set, will use
22043
+ * primary display's scale factor as default.
22044
+ *
22045
+ * @experimental
22046
+ */
22047
+ deviceScaleFactor?: number;
21898
22048
  }
21899
22049
 
21900
22050
  interface OnBeforeRedirectListenerDetails {
@@ -22794,6 +22944,19 @@ declare namespace Electron {
22794
22944
  frame: (WebFrameMain) | (null);
22795
22945
  }
22796
22946
 
22947
+ interface SelectWebauthnAccountDetails {
22948
+ /**
22949
+ * The relying party identifier from the WebAuthn request.
22950
+ */
22951
+ relyingPartyId: string;
22952
+ accounts: WebAuthnAccount[];
22953
+ /**
22954
+ * The frame initiating this event. May be `null` if accessed after the frame has
22955
+ * either navigated or been destroyed.
22956
+ */
22957
+ frame: (WebFrameMain) | (null);
22958
+ }
22959
+
22797
22960
  interface SendSharedTextureOptions {
22798
22961
  /**
22799
22962
  * The target frame to transfer the shared texture to. For `WebContents`, you can
@@ -24124,6 +24287,16 @@ declare namespace Electron {
24124
24287
  fd: number;
24125
24288
  }
24126
24289
 
24290
+ interface TouchId {
24291
+ /**
24292
+ * The keychain access group that WebAuthn credentials will be stored under. This
24293
+ * value **must** also be present in your app's `keychain-access-groups`
24294
+ * code-signing entitlement, and is typically of the form
24295
+ * `<TEAM_ID>.<BUNDLE_ID>.webauthn`.
24296
+ */
24297
+ keychainAccessGroup: string;
24298
+ }
24299
+
24127
24300
  interface Video {
24128
24301
  /**
24129
24302
  * The id of the stream being granted. This will usually come from a
@@ -24231,6 +24404,7 @@ declare namespace Electron {
24231
24404
  type Configuration = Electron.Configuration;
24232
24405
  type Configurations = Electron.Configurations;
24233
24406
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
24407
+ type ConfigureWebAuthnOptions = Electron.ConfigureWebAuthnOptions;
24234
24408
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
24235
24409
  type ContextMenuEvent = Electron.ContextMenuEvent;
24236
24410
  type ContextMenuParams = Electron.ContextMenuParams;
@@ -24353,6 +24527,7 @@ declare namespace Electron {
24353
24527
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
24354
24528
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
24355
24529
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
24530
+ type SelectWebauthnAccountDetails = Electron.SelectWebauthnAccountDetails;
24356
24531
  type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
24357
24532
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
24358
24533
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
@@ -24418,6 +24593,7 @@ declare namespace Electron {
24418
24593
  type PageRanges = Electron.PageRanges;
24419
24594
  type Params = Electron.Params;
24420
24595
  type Planes = Electron.Planes;
24596
+ type TouchId = Electron.TouchId;
24421
24597
  type Video = Electron.Video;
24422
24598
  type Alternate = Electron.Alternate;
24423
24599
  type Alternates = Electron.Alternates;
@@ -24434,6 +24610,7 @@ declare namespace Electron {
24434
24610
  type CustomScheme = Electron.CustomScheme;
24435
24611
  type DesktopCapturerSource = Electron.DesktopCapturerSource;
24436
24612
  type Display = Electron.Display;
24613
+ type EnableHeapProfilingOptions = Electron.EnableHeapProfilingOptions;
24437
24614
  type Extension = Electron.Extension;
24438
24615
  type ExtensionInfo = Electron.ExtensionInfo;
24439
24616
  type FileFilter = Electron.FileFilter;
@@ -24510,6 +24687,7 @@ declare namespace Electron {
24510
24687
  type UploadRawData = Electron.UploadRawData;
24511
24688
  type USBDevice = Electron.USBDevice;
24512
24689
  type UserDefaultTypes = Electron.UserDefaultTypes;
24690
+ type WebAuthnAccount = Electron.WebAuthnAccount;
24513
24691
  type WebPreferences = Electron.WebPreferences;
24514
24692
  type WebRequestFilter = Electron.WebRequestFilter;
24515
24693
  type WebSource = Electron.WebSource;
@@ -24628,6 +24806,7 @@ declare namespace Electron {
24628
24806
  type Configuration = Electron.Configuration;
24629
24807
  type Configurations = Electron.Configurations;
24630
24808
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
24809
+ type ConfigureWebAuthnOptions = Electron.ConfigureWebAuthnOptions;
24631
24810
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
24632
24811
  type ContextMenuEvent = Electron.ContextMenuEvent;
24633
24812
  type ContextMenuParams = Electron.ContextMenuParams;
@@ -24750,6 +24929,7 @@ declare namespace Electron {
24750
24929
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
24751
24930
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
24752
24931
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
24932
+ type SelectWebauthnAccountDetails = Electron.SelectWebauthnAccountDetails;
24753
24933
  type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
24754
24934
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
24755
24935
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
@@ -24815,6 +24995,7 @@ declare namespace Electron {
24815
24995
  type PageRanges = Electron.PageRanges;
24816
24996
  type Params = Electron.Params;
24817
24997
  type Planes = Electron.Planes;
24998
+ type TouchId = Electron.TouchId;
24818
24999
  type Video = Electron.Video;
24819
25000
  type Alternate = Electron.Alternate;
24820
25001
  type Alternates = Electron.Alternates;
@@ -24831,6 +25012,7 @@ declare namespace Electron {
24831
25012
  type CustomScheme = Electron.CustomScheme;
24832
25013
  type DesktopCapturerSource = Electron.DesktopCapturerSource;
24833
25014
  type Display = Electron.Display;
25015
+ type EnableHeapProfilingOptions = Electron.EnableHeapProfilingOptions;
24834
25016
  type Extension = Electron.Extension;
24835
25017
  type ExtensionInfo = Electron.ExtensionInfo;
24836
25018
  type FileFilter = Electron.FileFilter;
@@ -24907,6 +25089,7 @@ declare namespace Electron {
24907
25089
  type UploadRawData = Electron.UploadRawData;
24908
25090
  type USBDevice = Electron.USBDevice;
24909
25091
  type UserDefaultTypes = Electron.UserDefaultTypes;
25092
+ type WebAuthnAccount = Electron.WebAuthnAccount;
24910
25093
  type WebPreferences = Electron.WebPreferences;
24911
25094
  type WebRequestFilter = Electron.WebRequestFilter;
24912
25095
  type WebSource = Electron.WebSource;
@@ -24953,6 +25136,7 @@ declare namespace Electron {
24953
25136
  type Configuration = Electron.Configuration;
24954
25137
  type Configurations = Electron.Configurations;
24955
25138
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
25139
+ type ConfigureWebAuthnOptions = Electron.ConfigureWebAuthnOptions;
24956
25140
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
24957
25141
  type ContextMenuEvent = Electron.ContextMenuEvent;
24958
25142
  type ContextMenuParams = Electron.ContextMenuParams;
@@ -25075,6 +25259,7 @@ declare namespace Electron {
25075
25259
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
25076
25260
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
25077
25261
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
25262
+ type SelectWebauthnAccountDetails = Electron.SelectWebauthnAccountDetails;
25078
25263
  type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
25079
25264
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
25080
25265
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
@@ -25140,6 +25325,7 @@ declare namespace Electron {
25140
25325
  type PageRanges = Electron.PageRanges;
25141
25326
  type Params = Electron.Params;
25142
25327
  type Planes = Electron.Planes;
25328
+ type TouchId = Electron.TouchId;
25143
25329
  type Video = Electron.Video;
25144
25330
  type Alternate = Electron.Alternate;
25145
25331
  type Alternates = Electron.Alternates;
@@ -25156,6 +25342,7 @@ declare namespace Electron {
25156
25342
  type CustomScheme = Electron.CustomScheme;
25157
25343
  type DesktopCapturerSource = Electron.DesktopCapturerSource;
25158
25344
  type Display = Electron.Display;
25345
+ type EnableHeapProfilingOptions = Electron.EnableHeapProfilingOptions;
25159
25346
  type Extension = Electron.Extension;
25160
25347
  type ExtensionInfo = Electron.ExtensionInfo;
25161
25348
  type FileFilter = Electron.FileFilter;
@@ -25232,6 +25419,7 @@ declare namespace Electron {
25232
25419
  type UploadRawData = Electron.UploadRawData;
25233
25420
  type USBDevice = Electron.USBDevice;
25234
25421
  type UserDefaultTypes = Electron.UserDefaultTypes;
25422
+ type WebAuthnAccount = Electron.WebAuthnAccount;
25235
25423
  type WebPreferences = Electron.WebPreferences;
25236
25424
  type WebRequestFilter = Electron.WebRequestFilter;
25237
25425
  type WebSource = Electron.WebSource;
@@ -25277,6 +25465,7 @@ declare namespace Electron {
25277
25465
  type Configuration = Electron.Configuration;
25278
25466
  type Configurations = Electron.Configurations;
25279
25467
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
25468
+ type ConfigureWebAuthnOptions = Electron.ConfigureWebAuthnOptions;
25280
25469
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
25281
25470
  type ContextMenuEvent = Electron.ContextMenuEvent;
25282
25471
  type ContextMenuParams = Electron.ContextMenuParams;
@@ -25399,6 +25588,7 @@ declare namespace Electron {
25399
25588
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
25400
25589
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
25401
25590
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
25591
+ type SelectWebauthnAccountDetails = Electron.SelectWebauthnAccountDetails;
25402
25592
  type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
25403
25593
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
25404
25594
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
@@ -25464,6 +25654,7 @@ declare namespace Electron {
25464
25654
  type PageRanges = Electron.PageRanges;
25465
25655
  type Params = Electron.Params;
25466
25656
  type Planes = Electron.Planes;
25657
+ type TouchId = Electron.TouchId;
25467
25658
  type Video = Electron.Video;
25468
25659
  type Alternate = Electron.Alternate;
25469
25660
  type Alternates = Electron.Alternates;
@@ -25480,6 +25671,7 @@ declare namespace Electron {
25480
25671
  type CustomScheme = Electron.CustomScheme;
25481
25672
  type DesktopCapturerSource = Electron.DesktopCapturerSource;
25482
25673
  type Display = Electron.Display;
25674
+ type EnableHeapProfilingOptions = Electron.EnableHeapProfilingOptions;
25483
25675
  type Extension = Electron.Extension;
25484
25676
  type ExtensionInfo = Electron.ExtensionInfo;
25485
25677
  type FileFilter = Electron.FileFilter;
@@ -25556,6 +25748,7 @@ declare namespace Electron {
25556
25748
  type UploadRawData = Electron.UploadRawData;
25557
25749
  type USBDevice = Electron.USBDevice;
25558
25750
  type UserDefaultTypes = Electron.UserDefaultTypes;
25751
+ type WebAuthnAccount = Electron.WebAuthnAccount;
25559
25752
  type WebPreferences = Electron.WebPreferences;
25560
25753
  type WebRequestFilter = Electron.WebRequestFilter;
25561
25754
  type WebSource = Electron.WebSource;
@@ -25695,6 +25888,7 @@ declare namespace Electron {
25695
25888
  type Configuration = Electron.Configuration;
25696
25889
  type Configurations = Electron.Configurations;
25697
25890
  type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
25891
+ type ConfigureWebAuthnOptions = Electron.ConfigureWebAuthnOptions;
25698
25892
  type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
25699
25893
  type ContextMenuEvent = Electron.ContextMenuEvent;
25700
25894
  type ContextMenuParams = Electron.ContextMenuParams;
@@ -25817,6 +26011,7 @@ declare namespace Electron {
25817
26011
  type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
25818
26012
  type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
25819
26013
  type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
26014
+ type SelectWebauthnAccountDetails = Electron.SelectWebauthnAccountDetails;
25820
26015
  type SendSharedTextureOptions = Electron.SendSharedTextureOptions;
25821
26016
  type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
25822
26017
  type ServiceWorkersRunningStatusChangedEventParams = Electron.ServiceWorkersRunningStatusChangedEventParams;
@@ -25882,6 +26077,7 @@ declare namespace Electron {
25882
26077
  type PageRanges = Electron.PageRanges;
25883
26078
  type Params = Electron.Params;
25884
26079
  type Planes = Electron.Planes;
26080
+ type TouchId = Electron.TouchId;
25885
26081
  type Video = Electron.Video;
25886
26082
  type Alternate = Electron.Alternate;
25887
26083
  type Alternates = Electron.Alternates;
@@ -25898,6 +26094,7 @@ declare namespace Electron {
25898
26094
  type CustomScheme = Electron.CustomScheme;
25899
26095
  type DesktopCapturerSource = Electron.DesktopCapturerSource;
25900
26096
  type Display = Electron.Display;
26097
+ type EnableHeapProfilingOptions = Electron.EnableHeapProfilingOptions;
25901
26098
  type Extension = Electron.Extension;
25902
26099
  type ExtensionInfo = Electron.ExtensionInfo;
25903
26100
  type FileFilter = Electron.FileFilter;
@@ -25974,6 +26171,7 @@ declare namespace Electron {
25974
26171
  type UploadRawData = Electron.UploadRawData;
25975
26172
  type USBDevice = Electron.USBDevice;
25976
26173
  type UserDefaultTypes = Electron.UserDefaultTypes;
26174
+ type WebAuthnAccount = Electron.WebAuthnAccount;
25977
26175
  type WebPreferences = Electron.WebPreferences;
25978
26176
  type WebRequestFilter = Electron.WebRequestFilter;
25979
26177
  type WebSource = Electron.WebSource;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "41.3.0",
3
- "extractedAt": "2026-04-23T00:59:39.759Z"
2
+ "electronVersion": "41.5.0",
3
+ "extractedAt": "2026-05-02T06:51:08.364Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "41.3.0",
3
+ "version": "41.5.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",