electron-types 41.0.0-beta.7 → 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 +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@41.0.0-beta.
|
|
14
|
+
npm install -D electron-types@41.0.0-beta.8
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@41.0.0-beta.
|
|
16
|
+
yarn add -D electron-types@41.0.0-beta.8
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@41.0.0-beta.
|
|
18
|
+
pnpm add -D electron-types@41.0.0-beta.8
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 41.0.0-beta.
|
|
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
|
|
@@ -10181,11 +10181,11 @@ declare namespace Electron {
|
|
|
10181
10181
|
* notification from the action center but the `close` event will not be emitted
|
|
10182
10182
|
* again.
|
|
10183
10183
|
*/
|
|
10184
|
-
on(event: 'close', listener: (
|
|
10185
|
-
off(event: 'close', listener: (
|
|
10186
|
-
once(event: 'close', listener: (
|
|
10187
|
-
addListener(event: 'close', listener: (
|
|
10188
|
-
removeListener(event: 'close', listener: (
|
|
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;
|
|
10189
10189
|
/**
|
|
10190
10190
|
* Emitted when an error is encountered while creating and showing the native
|
|
10191
10191
|
* notification.
|
|
@@ -21765,6 +21765,14 @@ declare namespace Electron {
|
|
|
21765
21765
|
selectionIndex: number;
|
|
21766
21766
|
}
|
|
21767
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
|
+
|
|
21768
21776
|
interface NotificationConstructorOptions {
|
|
21769
21777
|
/**
|
|
21770
21778
|
* A title for the notification, which will be displayed at the top of the
|
|
@@ -24273,6 +24281,7 @@ declare namespace Electron {
|
|
|
24273
24281
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
24274
24282
|
type NativePixmap = Electron.NativePixmap;
|
|
24275
24283
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
24284
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
24276
24285
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
24277
24286
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
24278
24287
|
type Offscreen = Electron.Offscreen;
|
|
@@ -24669,6 +24678,7 @@ declare namespace Electron {
|
|
|
24669
24678
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
24670
24679
|
type NativePixmap = Electron.NativePixmap;
|
|
24671
24680
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
24681
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
24672
24682
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
24673
24683
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
24674
24684
|
type Offscreen = Electron.Offscreen;
|
|
@@ -24993,6 +25003,7 @@ declare namespace Electron {
|
|
|
24993
25003
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
24994
25004
|
type NativePixmap = Electron.NativePixmap;
|
|
24995
25005
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
25006
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
24996
25007
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
24997
25008
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
24998
25009
|
type Offscreen = Electron.Offscreen;
|
|
@@ -25316,6 +25327,7 @@ declare namespace Electron {
|
|
|
25316
25327
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
25317
25328
|
type NativePixmap = Electron.NativePixmap;
|
|
25318
25329
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
25330
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
25319
25331
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
25320
25332
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
25321
25333
|
type Offscreen = Electron.Offscreen;
|
|
@@ -25733,6 +25745,7 @@ declare namespace Electron {
|
|
|
25733
25745
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
25734
25746
|
type NativePixmap = Electron.NativePixmap;
|
|
25735
25747
|
type NotificationActionEventParams = Electron.NotificationActionEventParams;
|
|
25748
|
+
type NotificationCloseEventParams = Electron.NotificationCloseEventParams;
|
|
25736
25749
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
25737
25750
|
type NotificationReplyEventParams = Electron.NotificationReplyEventParams;
|
|
25738
25751
|
type Offscreen = Electron.Offscreen;
|
package/dist/version.json
CHANGED