electron-types 42.0.0-beta.3 → 42.0.0-beta.4
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 +29 -12
- 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@42.0.0-beta.
|
|
14
|
+
npm install -D electron-types@42.0.0-beta.4
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@42.0.0-beta.
|
|
16
|
+
yarn add -D electron-types@42.0.0-beta.4
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@42.0.0-beta.
|
|
18
|
+
pnpm add -D electron-types@42.0.0-beta.4
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 42.0.0-beta.
|
|
1
|
+
// Type definitions for Electron 42.0.0-beta.4
|
|
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
|
|
@@ -10407,11 +10407,17 @@ declare namespace Electron {
|
|
|
10407
10407
|
/**
|
|
10408
10408
|
* A `string` property representing the group identifier of the notification.
|
|
10409
10409
|
* Notifications with the same `groupId` will be visually grouped together in
|
|
10410
|
-
* Notification Center.
|
|
10410
|
+
* Notification Center (macOS) or Action Center (Windows).
|
|
10411
10411
|
*
|
|
10412
|
-
* @platform darwin
|
|
10412
|
+
* @platform darwin,win32
|
|
10413
10413
|
*/
|
|
10414
10414
|
readonly groupId: string;
|
|
10415
|
+
/**
|
|
10416
|
+
* A `string` property representing the title of the notification group header.
|
|
10417
|
+
*
|
|
10418
|
+
* @platform win32
|
|
10419
|
+
*/
|
|
10420
|
+
readonly groupTitle: string;
|
|
10415
10421
|
/**
|
|
10416
10422
|
* A `boolean` property representing whether the notification has a reply action.
|
|
10417
10423
|
*/
|
|
@@ -10421,7 +10427,7 @@ declare namespace Electron {
|
|
|
10421
10427
|
* is set at construction time — either from the `id` option or as a generated UUID
|
|
10422
10428
|
* if none was provided.
|
|
10423
10429
|
*
|
|
10424
|
-
* @platform darwin
|
|
10430
|
+
* @platform darwin,win32
|
|
10425
10431
|
*/
|
|
10426
10432
|
readonly id: string;
|
|
10427
10433
|
/**
|
|
@@ -21917,22 +21923,33 @@ declare namespace Electron {
|
|
|
21917
21923
|
|
|
21918
21924
|
interface NotificationConstructorOptions {
|
|
21919
21925
|
/**
|
|
21920
|
-
* A unique identifier for the notification,
|
|
21921
|
-
* `identifier` property.
|
|
21922
|
-
*
|
|
21923
|
-
*
|
|
21926
|
+
* A unique identifier for the notification. On macOS, maps to
|
|
21927
|
+
* `UNNotificationRequest`'s `identifier` property. On Windows, maps to the toast
|
|
21928
|
+
* notification's `Tag` property. Defaults to a random UUID if not provided or if
|
|
21929
|
+
* an empty string is passed. This can be used to remove or update previously
|
|
21930
|
+
* delivered notifications.
|
|
21924
21931
|
*
|
|
21925
|
-
* @platform darwin
|
|
21932
|
+
* @platform darwin,win32
|
|
21926
21933
|
*/
|
|
21927
21934
|
id?: string;
|
|
21928
21935
|
/**
|
|
21929
21936
|
* A string identifier used to visually group notifications together in
|
|
21930
|
-
* Notification Center.
|
|
21931
|
-
* property.
|
|
21937
|
+
* Notification Center / Action Center. On macOS, maps to `UNNotificationContent`'s
|
|
21938
|
+
* `threadIdentifier` property. On Windows, maps to the toast notification's
|
|
21939
|
+
* `Group` property.
|
|
21932
21940
|
*
|
|
21933
|
-
* @platform darwin
|
|
21941
|
+
* @platform darwin,win32
|
|
21934
21942
|
*/
|
|
21935
21943
|
groupId?: string;
|
|
21944
|
+
/**
|
|
21945
|
+
* A title for the notification group header. When both `groupId` and `groupTitle`
|
|
21946
|
+
* are specified, Windows will display a header above the notification that groups
|
|
21947
|
+
* related notifications together. Maps to the toast notification's `header`
|
|
21948
|
+
* element.
|
|
21949
|
+
*
|
|
21950
|
+
* @platform win32
|
|
21951
|
+
*/
|
|
21952
|
+
groupTitle?: string;
|
|
21936
21953
|
/**
|
|
21937
21954
|
* A title for the notification, which will be displayed at the top of the
|
|
21938
21955
|
* notification window when it is shown.
|
package/dist/version.json
CHANGED