electron 10.1.0 → 10.1.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/electron.d.ts +24 -52
- package/package.json +1 -1
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 10.1.
|
|
1
|
+
// Type definitions for Electron 10.1.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/electron-typescript-definitions
|
|
@@ -5743,7 +5743,7 @@ Starts recording network events to `path`.
|
|
|
5743
5743
|
/**
|
|
5744
5744
|
* Emitted when the system changes to AC power.
|
|
5745
5745
|
*
|
|
5746
|
-
* @platform win32
|
|
5746
|
+
* @platform darwin,win32
|
|
5747
5747
|
*/
|
|
5748
5748
|
on(event: 'on-ac', listener: Function): this;
|
|
5749
5749
|
once(event: 'on-ac', listener: Function): this;
|
|
@@ -5752,7 +5752,7 @@ Starts recording network events to `path`.
|
|
|
5752
5752
|
/**
|
|
5753
5753
|
* Emitted when system changes to battery power.
|
|
5754
5754
|
*
|
|
5755
|
-
* @platform
|
|
5755
|
+
* @platform darwin
|
|
5756
5756
|
*/
|
|
5757
5757
|
on(event: 'on-battery', listener: Function): this;
|
|
5758
5758
|
once(event: 'on-battery', listener: Function): this;
|
|
@@ -5761,7 +5761,7 @@ Starts recording network events to `path`.
|
|
|
5761
5761
|
/**
|
|
5762
5762
|
* Emitted when system is resuming.
|
|
5763
5763
|
*
|
|
5764
|
-
* @platform
|
|
5764
|
+
* @platform darwin,win32
|
|
5765
5765
|
*/
|
|
5766
5766
|
on(event: 'resume', listener: Function): this;
|
|
5767
5767
|
once(event: 'resume', listener: Function): this;
|
|
@@ -5782,7 +5782,7 @@ Starts recording network events to `path`.
|
|
|
5782
5782
|
/**
|
|
5783
5783
|
* Emitted when the system is suspending.
|
|
5784
5784
|
*
|
|
5785
|
-
* @platform
|
|
5785
|
+
* @platform darwin,win32
|
|
5786
5786
|
*/
|
|
5787
5787
|
on(event: 'suspend', listener: Function): this;
|
|
5788
5788
|
once(event: 'suspend', listener: Function): this;
|
|
@@ -7077,42 +7077,6 @@ Creates or updates a shortcut link at `shortcutPath`.
|
|
|
7077
7077
|
width: number;
|
|
7078
7078
|
}
|
|
7079
7079
|
|
|
7080
|
-
interface StreamProtocolResponse {
|
|
7081
|
-
|
|
7082
|
-
// Docs: http://electronjs.org/docs/api/structures/stream-protocol-response
|
|
7083
|
-
|
|
7084
|
-
/**
|
|
7085
|
-
* A Node.js readable stream representing the response body.
|
|
7086
|
-
*/
|
|
7087
|
-
data: (NodeJS.ReadableStream) | (null);
|
|
7088
|
-
/**
|
|
7089
|
-
* An object containing the response headers.
|
|
7090
|
-
*/
|
|
7091
|
-
headers?: Record<string, (string) | (string[])>;
|
|
7092
|
-
/**
|
|
7093
|
-
* The HTTP response code.
|
|
7094
|
-
*/
|
|
7095
|
-
statusCode?: number;
|
|
7096
|
-
}
|
|
7097
|
-
|
|
7098
|
-
interface StringProtocolResponse {
|
|
7099
|
-
|
|
7100
|
-
// Docs: http://electronjs.org/docs/api/structures/string-protocol-response
|
|
7101
|
-
|
|
7102
|
-
/**
|
|
7103
|
-
* Charset of the response.
|
|
7104
|
-
*/
|
|
7105
|
-
charset?: string;
|
|
7106
|
-
/**
|
|
7107
|
-
* A string representing the response body.
|
|
7108
|
-
*/
|
|
7109
|
-
data: (string) | (null);
|
|
7110
|
-
/**
|
|
7111
|
-
* MIME type of the response.
|
|
7112
|
-
*/
|
|
7113
|
-
mimeType?: string;
|
|
7114
|
-
}
|
|
7115
|
-
|
|
7116
7080
|
interface SystemPreferences extends NodeJS.EventEmitter {
|
|
7117
7081
|
|
|
7118
7082
|
// Docs: http://electronjs.org/docs/api/system-preferences
|
|
@@ -11826,7 +11790,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
11826
11790
|
/**
|
|
11827
11791
|
* The reason the render process is gone. Possible values:
|
|
11828
11792
|
*/
|
|
11829
|
-
reason: ('clean-exit' | 'abnormal-exit' | 'killed' | 'crashed' | 'oom' | 'launch-
|
|
11793
|
+
reason: ('clean-exit' | 'abnormal-exit' | 'killed' | 'crashed' | 'oom' | 'launch-failed' | 'integrity-failure');
|
|
11830
11794
|
}
|
|
11831
11795
|
|
|
11832
11796
|
interface DidChangeThemeColorEvent extends Event {
|
|
@@ -13558,9 +13522,9 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
13558
13522
|
*/
|
|
13559
13523
|
copies?: number;
|
|
13560
13524
|
/**
|
|
13561
|
-
* The page range to print.
|
|
13525
|
+
* The page range to print. On macOS, only one range is honored.
|
|
13562
13526
|
*/
|
|
13563
|
-
pageRanges?:
|
|
13527
|
+
pageRanges?: PageRanges[];
|
|
13564
13528
|
/**
|
|
13565
13529
|
* Set the duplex mode of the printed web page. Can be `simplex`, `shortEdge`, or
|
|
13566
13530
|
* `longEdge`.
|
|
@@ -13623,9 +13587,9 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
13623
13587
|
*/
|
|
13624
13588
|
copies?: number;
|
|
13625
13589
|
/**
|
|
13626
|
-
* The page range to print.
|
|
13590
|
+
* The page range to print. On macOS, only the first range is honored.
|
|
13627
13591
|
*/
|
|
13628
|
-
pageRanges?:
|
|
13592
|
+
pageRanges?: PageRanges[];
|
|
13629
13593
|
/**
|
|
13630
13594
|
* Set the duplex mode of the printed web page. Can be `simplex`, `shortEdge`, or
|
|
13631
13595
|
* `longEdge`.
|
|
@@ -13758,6 +13722,17 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
13758
13722
|
canRotate: boolean;
|
|
13759
13723
|
}
|
|
13760
13724
|
|
|
13725
|
+
interface PageRanges {
|
|
13726
|
+
/**
|
|
13727
|
+
* Index of the first page to print (0-based).
|
|
13728
|
+
*/
|
|
13729
|
+
from: number;
|
|
13730
|
+
/**
|
|
13731
|
+
* Index of the last page to print (inclusive) (0-based).
|
|
13732
|
+
*/
|
|
13733
|
+
to: number;
|
|
13734
|
+
}
|
|
13735
|
+
|
|
13761
13736
|
interface WebPreferences {
|
|
13762
13737
|
/**
|
|
13763
13738
|
* Whether to enable DevTools. If it is set to `false`, can not use
|
|
@@ -14221,6 +14196,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14221
14196
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
14222
14197
|
type Margins = Electron.Margins;
|
|
14223
14198
|
type MediaFlags = Electron.MediaFlags;
|
|
14199
|
+
type PageRanges = Electron.PageRanges;
|
|
14224
14200
|
type WebPreferences = Electron.WebPreferences;
|
|
14225
14201
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
14226
14202
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -14272,8 +14248,6 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14272
14248
|
type SharedWorkerInfo = Electron.SharedWorkerInfo;
|
|
14273
14249
|
type ShortcutDetails = Electron.ShortcutDetails;
|
|
14274
14250
|
type Size = Electron.Size;
|
|
14275
|
-
type StreamProtocolResponse = Electron.StreamProtocolResponse;
|
|
14276
|
-
type StringProtocolResponse = Electron.StringProtocolResponse;
|
|
14277
14251
|
type Task = Electron.Task;
|
|
14278
14252
|
type ThumbarButton = Electron.ThumbarButton;
|
|
14279
14253
|
type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
|
|
@@ -14465,6 +14439,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14465
14439
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
14466
14440
|
type Margins = Electron.Margins;
|
|
14467
14441
|
type MediaFlags = Electron.MediaFlags;
|
|
14442
|
+
type PageRanges = Electron.PageRanges;
|
|
14468
14443
|
type WebPreferences = Electron.WebPreferences;
|
|
14469
14444
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
14470
14445
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -14516,8 +14491,6 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14516
14491
|
type SharedWorkerInfo = Electron.SharedWorkerInfo;
|
|
14517
14492
|
type ShortcutDetails = Electron.ShortcutDetails;
|
|
14518
14493
|
type Size = Electron.Size;
|
|
14519
|
-
type StreamProtocolResponse = Electron.StreamProtocolResponse;
|
|
14520
|
-
type StringProtocolResponse = Electron.StringProtocolResponse;
|
|
14521
14494
|
type Task = Electron.Task;
|
|
14522
14495
|
type ThumbarButton = Electron.ThumbarButton;
|
|
14523
14496
|
type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
|
|
@@ -14666,6 +14639,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14666
14639
|
type FoundInPageResult = Electron.FoundInPageResult;
|
|
14667
14640
|
type Margins = Electron.Margins;
|
|
14668
14641
|
type MediaFlags = Electron.MediaFlags;
|
|
14642
|
+
type PageRanges = Electron.PageRanges;
|
|
14669
14643
|
type WebPreferences = Electron.WebPreferences;
|
|
14670
14644
|
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
14671
14645
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
@@ -14717,8 +14691,6 @@ See webContents.sendInputEvent for detailed description of `event` object.
|
|
|
14717
14691
|
type SharedWorkerInfo = Electron.SharedWorkerInfo;
|
|
14718
14692
|
type ShortcutDetails = Electron.ShortcutDetails;
|
|
14719
14693
|
type Size = Electron.Size;
|
|
14720
|
-
type StreamProtocolResponse = Electron.StreamProtocolResponse;
|
|
14721
|
-
type StringProtocolResponse = Electron.StringProtocolResponse;
|
|
14722
14694
|
type Task = Electron.Task;
|
|
14723
14695
|
type ThumbarButton = Electron.ThumbarButton;
|
|
14724
14696
|
type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">= 8.6"
|
|
17
17
|
},
|
|
18
18
|
"name": "electron",
|
|
19
|
-
"version": "10.1.
|
|
19
|
+
"version": "10.1.4",
|
|
20
20
|
"repository": "https://github.com/electron/electron",
|
|
21
21
|
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
|
22
22
|
"license": "MIT",
|