electron-types 41.0.0-beta.6 → 41.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -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.0-beta.6
14
+ npm install -D electron-types@41.0.0-beta.8
15
15
  # or
16
- yarn add -D electron-types@41.0.0-beta.6
16
+ yarn add -D electron-types@41.0.0-beta.8
17
17
  # or
18
- pnpm add -D electron-types@41.0.0-beta.6
18
+ pnpm add -D electron-types@41.0.0-beta.8
19
19
  ```
20
20
 
21
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 41.0.0-beta.6
1
+ // Type definitions for Electron 41.0.0-beta.8
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/typescript-definitions
@@ -9416,8 +9416,9 @@ declare namespace Electron {
9416
9416
  */
9417
9417
  accelerator: (Accelerator) | (null);
9418
9418
  /**
9419
- * A `boolean` indicating whether the item is checked. This property can be
9420
- * dynamically changed.
9419
+ * A `boolean` indicating whether the item is checked.
9420
+ *
9421
+ * This property can be dynamically changed.
9421
9422
  *
9422
9423
  * A `checkbox` menu item will toggle the `checked` property on and off when
9423
9424
  * selected.
@@ -9442,21 +9443,27 @@ declare namespace Electron {
9442
9443
  */
9443
9444
  commandId: number;
9444
9445
  /**
9445
- * A `boolean` indicating whether the item is enabled. This property can be
9446
- * dynamically changed.
9446
+ * A `boolean` indicating whether the item is enabled.
9447
+ *
9448
+ * This property can be dynamically changed.
9447
9449
  */
9448
9450
  enabled: boolean;
9449
9451
  /**
9450
9452
  * A `NativeImage | string` (optional) indicating the item's icon, if set.
9453
+ *
9454
+ * This property can be dynamically changed.
9451
9455
  */
9452
9456
  icon?: (NativeImage) | (string);
9453
9457
  /**
9454
- * A `string` indicating the item's unique id. This property can be dynamically
9455
- * changed.
9458
+ * A `string` indicating the item's unique id.
9459
+ *
9460
+ * This property can be dynamically changed.
9456
9461
  */
9457
9462
  id: string;
9458
9463
  /**
9459
9464
  * A `string` indicating the item's visible label.
9465
+ *
9466
+ * This property can be dynamically changed.
9460
9467
  */
9461
9468
  label: string;
9462
9469
  /**
@@ -9492,6 +9499,8 @@ declare namespace Electron {
9492
9499
  sharingItem: SharingItem;
9493
9500
  /**
9494
9501
  * A `string` indicating the item's sublabel.
9502
+ *
9503
+ * This property can be dynamically changed.
9495
9504
  */
9496
9505
  sublabel: string;
9497
9506
  /**
@@ -9524,8 +9533,9 @@ declare namespace Electron {
9524
9533
  */
9525
9534
  readonly userAccelerator: (Accelerator) | (null);
9526
9535
  /**
9527
- * A `boolean` indicating whether the item is visible. This property can be
9528
- * dynamically changed.
9536
+ * A `boolean` indicating whether the item is visible.
9537
+ *
9538
+ * This property can be dynamically changed.
9529
9539
  */
9530
9540
  visible: boolean;
9531
9541
  }
@@ -10171,11 +10181,11 @@ declare namespace Electron {
10171
10181
  * notification from the action center but the `close` event will not be emitted
10172
10182
  * again.
10173
10183
  */
10174
- on(event: 'close', listener: (event: Event) => void): this;
10175
- off(event: 'close', listener: (event: Event) => void): this;
10176
- once(event: 'close', listener: (event: Event) => void): this;
10177
- addListener(event: 'close', listener: (event: Event) => void): this;
10178
- removeListener(event: 'close', listener: (event: Event) => void): this;
10184
+ on(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
10185
+ off(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
10186
+ once(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
10187
+ addListener(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
10188
+ removeListener(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
10179
10189
  /**
10180
10190
  * Emitted when an error is encountered while creating and showing the native
10181
10191
  * notification.
@@ -21755,6 +21765,14 @@ declare namespace Electron {
21755
21765
  selectionIndex: number;
21756
21766
  }
21757
21767
 
21768
+ interface NotificationCloseEventParams {
21769
+ /**
21770
+ * The reason the notification was closed. This can be 'userCanceled',
21771
+ * 'applicationHidden', or 'timedOut'.
21772
+ */
21773
+ reason?: ('userCanceled' | 'applicationHidden' | 'timedOut');
21774
+ }
21775
+
21758
21776
  interface NotificationConstructorOptions {
21759
21777
  /**
21760
21778
  * A title for the notification, which will be displayed at the top of the
@@ -24263,6 +24281,7 @@ declare namespace Electron {
24263
24281
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
24264
24282
  type NativePixmap = Electron.NativePixmap;
24265
24283
  type NotificationActionEventParams = Electron.NotificationActionEventParams;
24284
+ type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
24266
24285
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
24267
24286
  type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
24268
24287
  type Offscreen = Electron.Offscreen;
@@ -24659,6 +24678,7 @@ declare namespace Electron {
24659
24678
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
24660
24679
  type NativePixmap = Electron.NativePixmap;
24661
24680
  type NotificationActionEventParams = Electron.NotificationActionEventParams;
24681
+ type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
24662
24682
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
24663
24683
  type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
24664
24684
  type Offscreen = Electron.Offscreen;
@@ -24983,6 +25003,7 @@ declare namespace Electron {
24983
25003
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
24984
25004
  type NativePixmap = Electron.NativePixmap;
24985
25005
  type NotificationActionEventParams = Electron.NotificationActionEventParams;
25006
+ type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
24986
25007
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
24987
25008
  type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
24988
25009
  type Offscreen = Electron.Offscreen;
@@ -25306,6 +25327,7 @@ declare namespace Electron {
25306
25327
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
25307
25328
  type NativePixmap = Electron.NativePixmap;
25308
25329
  type NotificationActionEventParams = Electron.NotificationActionEventParams;
25330
+ type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
25309
25331
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
25310
25332
  type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
25311
25333
  type Offscreen = Electron.Offscreen;
@@ -25723,6 +25745,7 @@ declare namespace Electron {
25723
25745
  type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
25724
25746
  type NativePixmap = Electron.NativePixmap;
25725
25747
  type NotificationActionEventParams = Electron.NotificationActionEventParams;
25748
+ type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
25726
25749
  type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
25727
25750
  type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
25728
25751
  type Offscreen = Electron.Offscreen;
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "41.0.0-beta.6",
3
- "extractedAt": "2026-02-26T18:24:28.615Z"
2
+ "electronVersion": "41.0.0-beta.8",
3
+ "extractedAt": "2026-03-06T12:20:43.063Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "41.0.0-beta.6",
3
+ "version": "41.0.0-beta.8",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",