electron-types 42.0.0-alpha.4 → 42.0.0-alpha.6
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 +13 -5
- 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-alpha.
|
|
14
|
+
npm install -D electron-types@42.0.0-alpha.6
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@42.0.0-alpha.
|
|
16
|
+
yarn add -D electron-types@42.0.0-alpha.6
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@42.0.0-alpha.
|
|
18
|
+
pnpm add -D electron-types@42.0.0-alpha.6
|
|
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-alpha.
|
|
1
|
+
// Type definitions for Electron 42.0.0-alpha.6
|
|
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
|
|
@@ -9872,6 +9872,14 @@ declare namespace Electron {
|
|
|
9872
9872
|
*
|
|
9873
9873
|
*/
|
|
9874
9874
|
readonly prefersReducedTransparency: boolean;
|
|
9875
|
+
/**
|
|
9876
|
+
* A `boolean` that indicates whether the user prefers UI that differentiates items
|
|
9877
|
+
* using something other than color alone (e.g. shapes or labels). This maps to
|
|
9878
|
+
* NSWorkspace.accessibilityDisplayShouldDifferentiateWithoutColor.
|
|
9879
|
+
*
|
|
9880
|
+
* @platform darwin
|
|
9881
|
+
*/
|
|
9882
|
+
readonly shouldDifferentiateWithoutColor: boolean;
|
|
9875
9883
|
/**
|
|
9876
9884
|
* A `boolean` for if the OS / Chromium currently has a dark mode enabled or is
|
|
9877
9885
|
* being instructed to show a dark-style UI. If you want to modify this value you
|
|
@@ -21940,7 +21948,7 @@ declare namespace Electron {
|
|
|
21940
21948
|
/**
|
|
21941
21949
|
* Whether or not to add an inline reply option to the notification.
|
|
21942
21950
|
*
|
|
21943
|
-
* @platform darwin
|
|
21951
|
+
* @platform darwin,win32
|
|
21944
21952
|
*/
|
|
21945
21953
|
hasReply?: boolean;
|
|
21946
21954
|
/**
|
|
@@ -21952,7 +21960,7 @@ declare namespace Electron {
|
|
|
21952
21960
|
/**
|
|
21953
21961
|
* The placeholder to write in the inline reply input field.
|
|
21954
21962
|
*
|
|
21955
|
-
* @platform darwin
|
|
21963
|
+
* @platform darwin,win32
|
|
21956
21964
|
*/
|
|
21957
21965
|
replyPlaceholder?: string;
|
|
21958
21966
|
/**
|
|
@@ -21964,14 +21972,14 @@ declare namespace Electron {
|
|
|
21964
21972
|
/**
|
|
21965
21973
|
* The urgency level of the notification. Can be 'normal', 'critical', or 'low'.
|
|
21966
21974
|
*
|
|
21967
|
-
* @platform linux
|
|
21975
|
+
* @platform linux,win32
|
|
21968
21976
|
*/
|
|
21969
21977
|
urgency?: ('normal' | 'critical' | 'low');
|
|
21970
21978
|
/**
|
|
21971
21979
|
* Actions to add to the notification. Please read the available actions and
|
|
21972
21980
|
* limitations in the `NotificationAction` documentation.
|
|
21973
21981
|
*
|
|
21974
|
-
* @platform darwin
|
|
21982
|
+
* @platform darwin,win32
|
|
21975
21983
|
*/
|
|
21976
21984
|
actions?: NotificationAction[];
|
|
21977
21985
|
/**
|
package/dist/version.json
CHANGED