electron-types 40.7.0 → 40.8.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 +3 -3
- package/dist/electron.d.ts +19 -6
- package/dist/version.json +2 -2
- package/package.json +1 -1
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@40.
|
|
14
|
+
npm install -D electron-types@40.8.0
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@40.
|
|
16
|
+
yarn add -D electron-types@40.8.0
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@40.
|
|
18
|
+
pnpm add -D electron-types@40.8.0
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 40.
|
|
1
|
+
// Type definitions for Electron 40.8.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
|
|
@@ -10155,11 +10155,11 @@ declare namespace Electron {
|
|
|
10155
10155
|
* notification from the action center but the `close` event will not be emitted
|
|
10156
10156
|
* again.
|
|
10157
10157
|
*/
|
|
10158
|
-
on(event: 'close', listener: (
|
|
10159
|
-
off(event: 'close', listener: (
|
|
10160
|
-
once(event: 'close', listener: (
|
|
10161
|
-
addListener(event: 'close', listener: (
|
|
10162
|
-
removeListener(event: 'close', listener: (
|
|
10158
|
+
on(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
|
|
10159
|
+
off(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
|
|
10160
|
+
once(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
|
|
10161
|
+
addListener(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
|
|
10162
|
+
removeListener(event: 'close', listener: (details: Event<NotificationCloseEventParams>) => void): this;
|
|
10163
10163
|
/**
|
|
10164
10164
|
* Emitted when an error is encountered while creating and showing the native
|
|
10165
10165
|
* notification.
|
|
@@ -21736,6 +21736,14 @@ declare namespace Electron {
|
|
|
21736
21736
|
selectionIndex: number;
|
|
21737
21737
|
}
|
|
21738
21738
|
|
|
21739
|
+
interface NotificationCloseEventParams {
|
|
21740
|
+
/**
|
|
21741
|
+
* The reason the notification was closed. This can be 'userCanceled',
|
|
21742
|
+
* 'applicationHidden', or 'timedOut'.
|
|
21743
|
+
*/
|
|
21744
|
+
reason?: ('userCanceled' | 'applicationHidden' | 'timedOut');
|
|
21745
|
+
}
|
|
21746
|
+
|
|
21739
21747
|
interface NotificationConstructorOptions {
|
|
21740
21748
|
/**
|
|
21741
21749
|
* A title for the notification, which will be displayed at the top of the
|
|
@@ -24235,6 +24243,7 @@ declare namespace Electron {
|
|
|
24235
24243
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
24236
24244
|
type NativePixmap = Electron.NativePixmap;
|
|
24237
24245
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
24246
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
24238
24247
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
24239
24248
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
24240
24249
|
type Offscreen = Electron.Offscreen;
|
|
@@ -24631,6 +24640,7 @@ declare namespace Electron {
|
|
|
24631
24640
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
24632
24641
|
type NativePixmap = Electron.NativePixmap;
|
|
24633
24642
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
24643
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
24634
24644
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
24635
24645
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
24636
24646
|
type Offscreen = Electron.Offscreen;
|
|
@@ -24955,6 +24965,7 @@ declare namespace Electron {
|
|
|
24955
24965
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
24956
24966
|
type NativePixmap = Electron.NativePixmap;
|
|
24957
24967
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
24968
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
24958
24969
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
24959
24970
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
24960
24971
|
type Offscreen = Electron.Offscreen;
|
|
@@ -25278,6 +25289,7 @@ declare namespace Electron {
|
|
|
25278
25289
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
25279
25290
|
type NativePixmap = Electron.NativePixmap;
|
|
25280
25291
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
25292
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
25281
25293
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
25282
25294
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
25283
25295
|
type Offscreen = Electron.Offscreen;
|
|
@@ -25695,6 +25707,7 @@ declare namespace Electron {
|
|
|
25695
25707
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
25696
25708
|
type NativePixmap = Electron.NativePixmap;
|
|
25697
25709
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
25710
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
25698
25711
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
25699
25712
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
25700
25713
|
type Offscreen = Electron.Offscreen;
|
package/dist/version.json
CHANGED