electron-types 44.10.1 → 44.11.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 +70 -2
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
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)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@44.
|
|
17
|
+
npm install -D electron-types@44.11.0
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@44.
|
|
19
|
+
yarn add -D electron-types@44.11.0
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@44.
|
|
21
|
+
pnpm add -D electron-types@44.11.0
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.
|
|
1
|
+
// Type definitions for Electron 44.11.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
|
|
@@ -10007,6 +10007,22 @@ declare namespace Electron {
|
|
|
10007
10007
|
* one. It contains standard items such as `File`, `Edit`, `View`, and `Window`.
|
|
10008
10008
|
*/
|
|
10009
10009
|
static setApplicationMenu(menu: (Menu) | (null)): void;
|
|
10010
|
+
/**
|
|
10011
|
+
* Sets the colors used to highlight the hovered or keyboard-focused item in every
|
|
10012
|
+
* menu the app shows, including context menus and the menu bar's dropdowns. Light
|
|
10013
|
+
* and dark colors are set separately, and any color left unset keeps the default
|
|
10014
|
+
* for that mode. Each call replaces the colors set by any previous call. Passing
|
|
10015
|
+
* `null` restores the defaults.
|
|
10016
|
+
*
|
|
10017
|
+
* Menus opened after the call use the new colors. The colors are not applied while
|
|
10018
|
+
* Windows high contrast mode or forced colors are active, so the user's system
|
|
10019
|
+
* colors take priority.
|
|
10020
|
+
*
|
|
10021
|
+
* This method has no effect on macOS and Linux.
|
|
10022
|
+
*
|
|
10023
|
+
* @platform win32
|
|
10024
|
+
*/
|
|
10025
|
+
static setHighlightColors(options: (HighlightColorsOptions) | (null)): void;
|
|
10010
10026
|
/**
|
|
10011
10027
|
* Appends the `menuItem` to the menu.
|
|
10012
10028
|
*/
|
|
@@ -14908,7 +14924,9 @@ declare namespace Electron {
|
|
|
14908
14924
|
*
|
|
14909
14925
|
* Same as `subscribeNotification`, but uses `NSNotificationCenter` for local
|
|
14910
14926
|
* defaults. This is necessary for events such as
|
|
14911
|
-
* `NSUserDefaultsDidChangeNotification`.
|
|
14927
|
+
* `NSUserDefaultsDidChangeNotification`. `callback` is always called on the main
|
|
14928
|
+
* thread. Notifications posted on other threads are delivered to it
|
|
14929
|
+
* asynchronously.
|
|
14912
14930
|
*
|
|
14913
14931
|
* If `event` is null, the `NSNotificationCenter` doesn’t use it as criteria for
|
|
14914
14932
|
* delivery to the observer. See docs for more information.
|
|
@@ -22747,6 +22765,17 @@ declare namespace Electron {
|
|
|
22747
22765
|
origin?: string;
|
|
22748
22766
|
}
|
|
22749
22767
|
|
|
22768
|
+
interface HighlightColorsOptions {
|
|
22769
|
+
/**
|
|
22770
|
+
* Colors used when menus are drawn with light colors.
|
|
22771
|
+
*/
|
|
22772
|
+
light?: Light;
|
|
22773
|
+
/**
|
|
22774
|
+
* Colors used when menus are drawn with dark colors.
|
|
22775
|
+
*/
|
|
22776
|
+
dark?: Dark;
|
|
22777
|
+
}
|
|
22778
|
+
|
|
22750
22779
|
interface IgnoreMouseEventsOptions {
|
|
22751
22780
|
/**
|
|
22752
22781
|
* If true, forwards mouse move messages to Chromium, enabling mouse related events
|
|
@@ -25430,6 +25459,18 @@ declare namespace Electron {
|
|
|
25430
25459
|
interface Children {
|
|
25431
25460
|
}
|
|
25432
25461
|
|
|
25462
|
+
interface Dark {
|
|
25463
|
+
/**
|
|
25464
|
+
* Background color of the hovered or keyboard-focused menu item, as a CSS color
|
|
25465
|
+
* string.
|
|
25466
|
+
*/
|
|
25467
|
+
background?: string;
|
|
25468
|
+
/**
|
|
25469
|
+
* Text color of the hovered or keyboard-focused menu item, as a CSS color string.
|
|
25470
|
+
*/
|
|
25471
|
+
foreground?: string;
|
|
25472
|
+
}
|
|
25473
|
+
|
|
25433
25474
|
interface EditFlags {
|
|
25434
25475
|
/**
|
|
25435
25476
|
* Whether the renderer believes it can undo.
|
|
@@ -25542,6 +25583,18 @@ declare namespace Electron {
|
|
|
25542
25583
|
enabled: boolean;
|
|
25543
25584
|
}
|
|
25544
25585
|
|
|
25586
|
+
interface Light {
|
|
25587
|
+
/**
|
|
25588
|
+
* Background color of the hovered or keyboard-focused menu item, as a CSS color
|
|
25589
|
+
* string (e.g. `#0067c0`).
|
|
25590
|
+
*/
|
|
25591
|
+
background?: string;
|
|
25592
|
+
/**
|
|
25593
|
+
* Text color of the hovered or keyboard-focused menu item, as a CSS color string.
|
|
25594
|
+
*/
|
|
25595
|
+
foreground?: string;
|
|
25596
|
+
}
|
|
25597
|
+
|
|
25545
25598
|
interface Margins {
|
|
25546
25599
|
/**
|
|
25547
25600
|
* Can be `default`, `none`, `printableArea`, or `custom`. If `custom` is chosen,
|
|
@@ -25967,6 +26020,7 @@ declare namespace Electron {
|
|
|
25967
26020
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
25968
26021
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
25969
26022
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
26023
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
25970
26024
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
25971
26025
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
25972
26026
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -26095,6 +26149,7 @@ declare namespace Electron {
|
|
|
26095
26149
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
26096
26150
|
type Animate = Electron.Animate;
|
|
26097
26151
|
type Children = Electron.Children;
|
|
26152
|
+
type Dark = Electron.Dark;
|
|
26098
26153
|
type EditFlags = Electron.EditFlags;
|
|
26099
26154
|
type Env = Electron.Env;
|
|
26100
26155
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -26102,6 +26157,7 @@ declare namespace Electron {
|
|
|
26102
26157
|
type InputReports = Electron.InputReports;
|
|
26103
26158
|
type Interfaces = Electron.Interfaces;
|
|
26104
26159
|
type LaunchItems = Electron.LaunchItems;
|
|
26160
|
+
type Light = Electron.Light;
|
|
26105
26161
|
type Margins = Electron.Margins;
|
|
26106
26162
|
type MediaFlags = Electron.MediaFlags;
|
|
26107
26163
|
type Metadata = Electron.Metadata;
|
|
@@ -26386,6 +26442,7 @@ declare namespace Electron {
|
|
|
26386
26442
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
26387
26443
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
26388
26444
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
26445
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
26389
26446
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
26390
26447
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
26391
26448
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -26514,6 +26571,7 @@ declare namespace Electron {
|
|
|
26514
26571
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
26515
26572
|
type Animate = Electron.Animate;
|
|
26516
26573
|
type Children = Electron.Children;
|
|
26574
|
+
type Dark = Electron.Dark;
|
|
26517
26575
|
type EditFlags = Electron.EditFlags;
|
|
26518
26576
|
type Env = Electron.Env;
|
|
26519
26577
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -26521,6 +26579,7 @@ declare namespace Electron {
|
|
|
26521
26579
|
type InputReports = Electron.InputReports;
|
|
26522
26580
|
type Interfaces = Electron.Interfaces;
|
|
26523
26581
|
type LaunchItems = Electron.LaunchItems;
|
|
26582
|
+
type Light = Electron.Light;
|
|
26524
26583
|
type Margins = Electron.Margins;
|
|
26525
26584
|
type MediaFlags = Electron.MediaFlags;
|
|
26526
26585
|
type Metadata = Electron.Metadata;
|
|
@@ -26728,6 +26787,7 @@ declare namespace Electron {
|
|
|
26728
26787
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
26729
26788
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
26730
26789
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
26790
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
26731
26791
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
26732
26792
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
26733
26793
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -26856,6 +26916,7 @@ declare namespace Electron {
|
|
|
26856
26916
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
26857
26917
|
type Animate = Electron.Animate;
|
|
26858
26918
|
type Children = Electron.Children;
|
|
26919
|
+
type Dark = Electron.Dark;
|
|
26859
26920
|
type EditFlags = Electron.EditFlags;
|
|
26860
26921
|
type Env = Electron.Env;
|
|
26861
26922
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -26863,6 +26924,7 @@ declare namespace Electron {
|
|
|
26863
26924
|
type InputReports = Electron.InputReports;
|
|
26864
26925
|
type Interfaces = Electron.Interfaces;
|
|
26865
26926
|
type LaunchItems = Electron.LaunchItems;
|
|
26927
|
+
type Light = Electron.Light;
|
|
26866
26928
|
type Margins = Electron.Margins;
|
|
26867
26929
|
type MediaFlags = Electron.MediaFlags;
|
|
26868
26930
|
type Metadata = Electron.Metadata;
|
|
@@ -27069,6 +27131,7 @@ declare namespace Electron {
|
|
|
27069
27131
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
27070
27132
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
27071
27133
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
27134
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
27072
27135
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
27073
27136
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
27074
27137
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -27197,6 +27260,7 @@ declare namespace Electron {
|
|
|
27197
27260
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
27198
27261
|
type Animate = Electron.Animate;
|
|
27199
27262
|
type Children = Electron.Children;
|
|
27263
|
+
type Dark = Electron.Dark;
|
|
27200
27264
|
type EditFlags = Electron.EditFlags;
|
|
27201
27265
|
type Env = Electron.Env;
|
|
27202
27266
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -27204,6 +27268,7 @@ declare namespace Electron {
|
|
|
27204
27268
|
type InputReports = Electron.InputReports;
|
|
27205
27269
|
type Interfaces = Electron.Interfaces;
|
|
27206
27270
|
type LaunchItems = Electron.LaunchItems;
|
|
27271
|
+
type Light = Electron.Light;
|
|
27207
27272
|
type Margins = Electron.Margins;
|
|
27208
27273
|
type MediaFlags = Electron.MediaFlags;
|
|
27209
27274
|
type Metadata = Electron.Metadata;
|
|
@@ -27507,6 +27572,7 @@ declare namespace Electron {
|
|
|
27507
27572
|
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
27508
27573
|
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
27509
27574
|
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
27575
|
+
type HighlightColorsOptions = Electron.HighlightColorsOptions;
|
|
27510
27576
|
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
27511
27577
|
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
27512
27578
|
type ImportSharedTextureOptions = Electron.ImportSharedTextureOptions;
|
|
@@ -27635,6 +27701,7 @@ declare namespace Electron {
|
|
|
27635
27701
|
type WillResizeDetails = Electron.WillResizeDetails;
|
|
27636
27702
|
type Animate = Electron.Animate;
|
|
27637
27703
|
type Children = Electron.Children;
|
|
27704
|
+
type Dark = Electron.Dark;
|
|
27638
27705
|
type EditFlags = Electron.EditFlags;
|
|
27639
27706
|
type Env = Electron.Env;
|
|
27640
27707
|
type FeatureReports = Electron.FeatureReports;
|
|
@@ -27642,6 +27709,7 @@ declare namespace Electron {
|
|
|
27642
27709
|
type InputReports = Electron.InputReports;
|
|
27643
27710
|
type Interfaces = Electron.Interfaces;
|
|
27644
27711
|
type LaunchItems = Electron.LaunchItems;
|
|
27712
|
+
type Light = Electron.Light;
|
|
27645
27713
|
type Margins = Electron.Margins;
|
|
27646
27714
|
type MediaFlags = Electron.MediaFlags;
|
|
27647
27715
|
type Metadata = Electron.Metadata;
|
package/dist/version.json
CHANGED