electron-types 45.0.0-alpha.8 → 45.0.0-beta.1
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 +208 -34
- 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@45.0.0-
|
|
17
|
+
npm install -D electron-types@45.0.0-beta.1
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@45.0.0-
|
|
19
|
+
yarn add -D electron-types@45.0.0-beta.1
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@45.0.0-
|
|
21
|
+
pnpm add -D electron-types@45.0.0-beta.1
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 45.0.0-
|
|
1
|
+
// Type definitions for Electron 45.0.0-beta.1
|
|
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
|
|
@@ -300,7 +300,8 @@ declare namespace Electron {
|
|
|
300
300
|
isMainFrame: boolean) => void): this;
|
|
301
301
|
/**
|
|
302
302
|
* Emitted when the child process unexpectedly disappears. This is normally because
|
|
303
|
-
* it was crashed or killed. It does not include
|
|
303
|
+
* it was crashed or killed, or because it failed to launch. It does not include
|
|
304
|
+
* renderer processes.
|
|
304
305
|
*/
|
|
305
306
|
on(event: 'child-process-gone', listener: (event: Event,
|
|
306
307
|
details: Details) => void): this;
|
|
@@ -3017,6 +3018,10 @@ declare namespace Electron {
|
|
|
3017
3018
|
isContentProtected(): boolean;
|
|
3018
3019
|
/**
|
|
3019
3020
|
* Whether the window is destroyed.
|
|
3021
|
+
*
|
|
3022
|
+
* > [!NOTE] Once a window is destroyed, accessing most of its other properties and
|
|
3023
|
+
* methods throws `Object has been destroyed`, so callbacks that may run after the
|
|
3024
|
+
* window is gone should guard with `isDestroyed()`.
|
|
3020
3025
|
*/
|
|
3021
3026
|
isDestroyed(): boolean;
|
|
3022
3027
|
/**
|
|
@@ -3368,6 +3373,16 @@ declare namespace Electron {
|
|
|
3368
3373
|
* it calls SetWindowDisplayAffinity with `WDA_EXCLUDEFROMCAPTURE`. For Windows 10
|
|
3369
3374
|
* version 2004 and up the window will be removed from capture entirely, older
|
|
3370
3375
|
* Windows versions behave as if `WDA_MONITOR` is applied capturing a black window.
|
|
3376
|
+
* The change takes effect with the next desktop composition, not when the call
|
|
3377
|
+
* returns, so a capture started immediately afterwards can still contain the
|
|
3378
|
+
* window.
|
|
3379
|
+
*
|
|
3380
|
+
* Protection also applies in a Windows remote session. A Remote Desktop client
|
|
3381
|
+
* still shows the window to the remote user, but remote access software that works
|
|
3382
|
+
* by capturing the desktop cannot. To leave windows unprotected in remote sessions
|
|
3383
|
+
* instead, disable the `AllowWindowCaptureExclusionInRemoteSessions` Chromium
|
|
3384
|
+
* feature at the start of your main script. `win.isContentProtected()` still
|
|
3385
|
+
* returns `true` in that case.
|
|
3371
3386
|
*
|
|
3372
3387
|
* @platform darwin,win32
|
|
3373
3388
|
*/
|
|
@@ -3433,7 +3448,10 @@ declare namespace Electron {
|
|
|
3433
3448
|
* Makes the window ignore all mouse events.
|
|
3434
3449
|
*
|
|
3435
3450
|
* All mouse events happened in this window will be passed to the window below this
|
|
3436
|
-
* window, but if this window has focus, it will still receive keyboard events.
|
|
3451
|
+
* window, but if this window has focus, it will still receive keyboard events. On
|
|
3452
|
+
* Linux this is supported on both X11 and Wayland. On X11 the X server has applied
|
|
3453
|
+
* the window's new input shape when the call returns; on Wayland the new input
|
|
3454
|
+
* region is applied with the window's next frame.
|
|
3437
3455
|
*/
|
|
3438
3456
|
setIgnoreMouseEvents(ignore: boolean, options?: IgnoreMouseEventsOptions): void;
|
|
3439
3457
|
/**
|
|
@@ -6186,7 +6204,16 @@ declare namespace Electron {
|
|
|
6186
6204
|
* On Windows, it calls `SetWindowDisplayAffinity` with `WDA_EXCLUDEFROMCAPTURE`.
|
|
6187
6205
|
* For Windows 10 version 2004 and up the window will be removed from capture
|
|
6188
6206
|
* entirely, older Windows versions behave as if `WDA_MONITOR` is applied capturing
|
|
6189
|
-
* a black window.
|
|
6207
|
+
* a black window. The change takes effect with the next desktop composition, not
|
|
6208
|
+
* when the call returns, so a capture started immediately afterwards can still
|
|
6209
|
+
* contain the window.
|
|
6210
|
+
*
|
|
6211
|
+
* Protection also applies in a Windows remote session. A Remote Desktop client
|
|
6212
|
+
* still shows the window to the remote user, but remote access software that works
|
|
6213
|
+
* by capturing the desktop cannot. To leave windows unprotected in remote sessions
|
|
6214
|
+
* instead, disable the `AllowWindowCaptureExclusionInRemoteSessions` Chromium
|
|
6215
|
+
* feature at the start of your main script. `win.isContentProtected()` still
|
|
6216
|
+
* returns `true` in that case.
|
|
6190
6217
|
*
|
|
6191
6218
|
* On macOS, it sets the `NSWindow`'s `sharingType` to `NSWindowSharingNone`.
|
|
6192
6219
|
* Unfortunately, due to an intentional change in macOS, newer Mac applications
|
|
@@ -6256,7 +6283,10 @@ declare namespace Electron {
|
|
|
6256
6283
|
* Makes the window ignore all mouse events.
|
|
6257
6284
|
*
|
|
6258
6285
|
* All mouse events happened in this window will be passed to the window below this
|
|
6259
|
-
* window, but if this window has focus, it will still receive keyboard events.
|
|
6286
|
+
* window, but if this window has focus, it will still receive keyboard events. On
|
|
6287
|
+
* Linux this is supported on both X11 and Wayland. On X11 the X server has applied
|
|
6288
|
+
* the window's new input shape when the call returns; on Wayland the new input
|
|
6289
|
+
* region is applied with the window's next frame.
|
|
6260
6290
|
*/
|
|
6261
6291
|
setIgnoreMouseEvents(ignore: boolean, options?: IgnoreMouseEventsOptions): void;
|
|
6262
6292
|
/**
|
|
@@ -6718,6 +6748,9 @@ declare namespace Electron {
|
|
|
6718
6748
|
*
|
|
6719
6749
|
* See the `webContents` documentation for its methods and events.
|
|
6720
6750
|
*
|
|
6751
|
+
* > [!NOTE] Reading this property throws `Object has been destroyed` once the
|
|
6752
|
+
* window has been destroyed; see `win.isDestroyed()`.
|
|
6753
|
+
*
|
|
6721
6754
|
*/
|
|
6722
6755
|
readonly webContents: WebContents;
|
|
6723
6756
|
}
|
|
@@ -7114,7 +7147,7 @@ declare namespace Electron {
|
|
|
7114
7147
|
* resolves to a ClipboardBookmark object instead. Rejects when `type` is not
|
|
7115
7148
|
* present in `clipboardItem.types`.
|
|
7116
7149
|
*/
|
|
7117
|
-
getType(type:
|
|
7150
|
+
getType<T extends string>(type: T): Promise<string extends T ? (Blob | ClipboardBookmark) : T extends 'electron application/bookmark' ? ClipboardBookmark : Blob>;
|
|
7118
7151
|
/**
|
|
7119
7152
|
* Resolves with a ClipboardBookmark when a bookmark is available in the clipboard.
|
|
7120
7153
|
* Rejects when a bookmark is not available in the clipboard.
|
|
@@ -7463,7 +7496,9 @@ declare namespace Electron {
|
|
|
7463
7496
|
/**
|
|
7464
7497
|
* Set an extra parameter to be sent with the crash report. The values specified
|
|
7465
7498
|
* here will be sent in addition to any values set via the `extra` option when
|
|
7466
|
-
* `start` was called.
|
|
7499
|
+
* `start` was called. Calling this again with the same key replaces the value. The
|
|
7500
|
+
* value is read when a crash happens, so you can update it as your app's state
|
|
7501
|
+
* changes.
|
|
7467
7502
|
*
|
|
7468
7503
|
* Parameters added in this fashion (or via the `extra` parameter to
|
|
7469
7504
|
* `crashReporter.start`) are specific to the calling process. Adding extra
|
|
@@ -7471,29 +7506,42 @@ declare namespace Electron {
|
|
|
7471
7506
|
* with crashes from renderer or other child processes. Similarly, adding extra
|
|
7472
7507
|
* parameters in a renderer process will not result in those parameters being sent
|
|
7473
7508
|
* with crashes that occur in other renderer processes or in the main process.
|
|
7509
|
+
* Processes created with `utilityProcess` have no API for setting extra
|
|
7510
|
+
* parameters, so only `globalExtra` values are sent with their crashes.
|
|
7474
7511
|
*
|
|
7475
7512
|
* > [!NOTE] Parameters have limits on the length of the keys and values. Key names
|
|
7476
7513
|
* must be no longer than 39 bytes, and values must be no longer than 20320 bytes.
|
|
7477
|
-
* Keys with names longer than the maximum
|
|
7478
|
-
* longer than the maximum length
|
|
7514
|
+
* Keys with names longer than the maximum are ignored, and a warning is emitted.
|
|
7515
|
+
* Values longer than the maximum length are truncated.
|
|
7479
7516
|
*/
|
|
7480
7517
|
addExtraParameter(key: string, value: string): void;
|
|
7481
7518
|
/**
|
|
7482
|
-
* The date and ID of the
|
|
7483
|
-
*
|
|
7484
|
-
*
|
|
7485
|
-
*
|
|
7519
|
+
* The date and ID of the crash report with the most recent upload time, from the
|
|
7520
|
+
* list returned by `getUploadedReports()`. If there are no crash reports at all,
|
|
7521
|
+
* `null` is returned.
|
|
7522
|
+
*
|
|
7523
|
+
* If no report has been uploaded yet but some are stored on disk, a report that
|
|
7524
|
+
* has not been uploaded may be returned. Check that its `id` is not empty before
|
|
7525
|
+
* treating it as uploaded.
|
|
7486
7526
|
*
|
|
7487
7527
|
* > [!NOTE] This method is only available in the main process.
|
|
7488
7528
|
*/
|
|
7489
7529
|
getLastCrashReport(): (CrashReport) | (null);
|
|
7490
7530
|
/**
|
|
7491
|
-
* The current 'extra' parameters of the crash reporter
|
|
7531
|
+
* The current 'extra' parameters of the crash reporter in the calling process, as
|
|
7532
|
+
* set with the `extra` option and `addExtraParameter`. Parameters set with the
|
|
7533
|
+
* `globalExtra` option are not included.
|
|
7492
7534
|
*/
|
|
7493
7535
|
getParameters(): Record<string, string>;
|
|
7494
7536
|
/**
|
|
7495
|
-
* Returns
|
|
7496
|
-
* ID.
|
|
7537
|
+
* Returns the crash reports stored on disk. Each report contains the date it was
|
|
7538
|
+
* uploaded and the ID that the crash server returned for it.
|
|
7539
|
+
*
|
|
7540
|
+
* Despite the method's name, reports that have not been uploaded (for example
|
|
7541
|
+
* because `uploadToServer` is `false`, the upload failed, or the report was rate
|
|
7542
|
+
* limited) are included too. For those reports, `id` is an empty string and `date`
|
|
7543
|
+
* is not meaningful. To list only uploaded reports, filter out reports with an
|
|
7544
|
+
* empty `id`.
|
|
7497
7545
|
*
|
|
7498
7546
|
* > [!NOTE] This method is only available in the main process.
|
|
7499
7547
|
*/
|
|
@@ -7536,9 +7584,9 @@ declare namespace Electron {
|
|
|
7536
7584
|
*
|
|
7537
7585
|
* > [!NOTE] Parameters passed in `extra`, `globalExtra` or set with
|
|
7538
7586
|
* `addExtraParameter` have limits on the length of the keys and values. Key names
|
|
7539
|
-
* must be at most 39 bytes long, and values must be no longer than
|
|
7540
|
-
* with names longer than the maximum
|
|
7541
|
-
* than the maximum length
|
|
7587
|
+
* must be at most 39 bytes long, and values must be no longer than 20320 bytes.
|
|
7588
|
+
* Keys with names longer than the maximum are ignored, and a warning is emitted.
|
|
7589
|
+
* Values longer than the maximum length are truncated.
|
|
7542
7590
|
*
|
|
7543
7591
|
* > [!NOTE] This method is only available in the main process.
|
|
7544
7592
|
*/
|
|
@@ -11747,6 +11795,12 @@ declare namespace Electron {
|
|
|
11747
11795
|
|
|
11748
11796
|
// Docs: https://electronjs.org/docs/api/protocol
|
|
11749
11797
|
|
|
11798
|
+
/**
|
|
11799
|
+
* The source registered for `scheme` with `protocol.registerSource`, or `null`.
|
|
11800
|
+
*
|
|
11801
|
+
* @experimental
|
|
11802
|
+
*/
|
|
11803
|
+
getSource(scheme: string): (ProtocolSource) | (null);
|
|
11750
11804
|
/**
|
|
11751
11805
|
* Register a protocol handler for `scheme`. Requests made to URLs with this scheme
|
|
11752
11806
|
* will delegate to this handler to determine what response should be sent.
|
|
@@ -11810,7 +11864,7 @@ declare namespace Electron {
|
|
|
11810
11864
|
*/
|
|
11811
11865
|
interceptStringProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: (string) | (ProtocolResponse)) => void) => void): boolean;
|
|
11812
11866
|
/**
|
|
11813
|
-
* Whether `scheme`
|
|
11867
|
+
* Whether `scheme` already has a handler or a source.
|
|
11814
11868
|
*/
|
|
11815
11869
|
isProtocolHandled(scheme: string): boolean;
|
|
11816
11870
|
/**
|
|
@@ -11905,6 +11959,28 @@ declare namespace Electron {
|
|
|
11905
11959
|
* correctly expect streaming responses.
|
|
11906
11960
|
*/
|
|
11907
11961
|
registerSchemesAsPrivileged(customSchemes: CustomScheme[]): void;
|
|
11962
|
+
/**
|
|
11963
|
+
* Serves `scheme` from directories on disk without a JavaScript handler. Each
|
|
11964
|
+
* request is matched against `routes` (a route with a `host` wins over one
|
|
11965
|
+
* without, then the longest `path` prefix wins), the rest of the URL's path is
|
|
11966
|
+
* resolved inside that route's `root`, and the file is streamed to the requester
|
|
11967
|
+
* the way `file:` URLs are, including from `asar` archives, with `Content-Type`
|
|
11968
|
+
* taken from the file extension. A path that resolves outside `root`, a missing
|
|
11969
|
+
* file, a request that matches no route, or a method other than `GET`/`HEAD` fails
|
|
11970
|
+
* with `net::ERR_FILE_NOT_FOUND`. A URL whose path ends in `/` serves the route's
|
|
11971
|
+
* `index` file.
|
|
11972
|
+
*
|
|
11973
|
+
* Use this instead of `protocol.handle` when a scheme only serves an app's own
|
|
11974
|
+
* bundled files: no request touches the main thread, so pages and their
|
|
11975
|
+
* subresources load at the same speed whether or not the main process is busy.
|
|
11976
|
+
*
|
|
11977
|
+
* A scheme has either a handler or a source; `protocol.unhandle` removes either,
|
|
11978
|
+
* and `protocol.isProtocolHandled` reports both. `webRequest` listeners apply to
|
|
11979
|
+
* these requests as to any other.
|
|
11980
|
+
*
|
|
11981
|
+
* @experimental
|
|
11982
|
+
*/
|
|
11983
|
+
registerSource(scheme: string, source: ProtocolSource): void;
|
|
11908
11984
|
/**
|
|
11909
11985
|
* Whether the protocol was successfully registered
|
|
11910
11986
|
*
|
|
@@ -11935,7 +12011,8 @@ declare namespace Electron {
|
|
|
11935
12011
|
*/
|
|
11936
12012
|
registerStringProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: (string) | (ProtocolResponse)) => void) => void): boolean;
|
|
11937
12013
|
/**
|
|
11938
|
-
* Removes a protocol handler registered with `protocol.handle
|
|
12014
|
+
* Removes a protocol handler registered with `protocol.handle` or a source
|
|
12015
|
+
* registered with `protocol.registerSource`.
|
|
11939
12016
|
*/
|
|
11940
12017
|
unhandle(scheme: string): void;
|
|
11941
12018
|
/**
|
|
@@ -12052,6 +12129,32 @@ declare namespace Electron {
|
|
|
12052
12129
|
data: (string) | (Buffer);
|
|
12053
12130
|
}
|
|
12054
12131
|
|
|
12132
|
+
interface ProtocolRoute {
|
|
12133
|
+
|
|
12134
|
+
// Docs: https://electronjs.org/docs/api/structures/protocol-route
|
|
12135
|
+
|
|
12136
|
+
/**
|
|
12137
|
+
* Which URLs on the scheme this route serves. A route without `match` serves every
|
|
12138
|
+
* URL.
|
|
12139
|
+
*/
|
|
12140
|
+
match?: Match;
|
|
12141
|
+
/**
|
|
12142
|
+
* What the matched URLs are served from.
|
|
12143
|
+
*/
|
|
12144
|
+
source: Source;
|
|
12145
|
+
}
|
|
12146
|
+
|
|
12147
|
+
interface ProtocolSource {
|
|
12148
|
+
|
|
12149
|
+
// Docs: https://electronjs.org/docs/api/structures/protocol-source
|
|
12150
|
+
|
|
12151
|
+
/**
|
|
12152
|
+
* How URLs on the scheme map to directories on disk; see
|
|
12153
|
+
* `protocol.registerSource`.
|
|
12154
|
+
*/
|
|
12155
|
+
routes: ProtocolRoute[];
|
|
12156
|
+
}
|
|
12157
|
+
|
|
12055
12158
|
interface ProxyConfig {
|
|
12056
12159
|
|
|
12057
12160
|
// Docs: https://electronjs.org/docs/api/structures/proxy-config
|
|
@@ -13719,7 +13822,7 @@ declare namespace Electron {
|
|
|
13719
13822
|
*
|
|
13720
13823
|
* Passing `null` instead of a function resets the handler to its default state.
|
|
13721
13824
|
*/
|
|
13722
|
-
setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: Streams) => void) => void) | (null), opts?: DisplayMediaRequestHandlerOpts): void;
|
|
13825
|
+
setDisplayMediaRequestHandler(handler: ((request: DisplayMediaRequestHandlerHandlerRequest, callback: (streams: (Streams) | (null)) => void) => void) | (null), opts?: DisplayMediaRequestHandlerOpts): void;
|
|
13723
13826
|
/**
|
|
13724
13827
|
* Sets download saving directory. By default, the download directory will be the
|
|
13725
13828
|
* `Downloads` under the respective app folder.
|
|
@@ -18934,7 +19037,8 @@ declare namespace Electron {
|
|
|
18934
19037
|
*/
|
|
18935
19038
|
setUserAgent(userAgent: string): void;
|
|
18936
19039
|
/**
|
|
18937
|
-
* Sets the maximum and minimum pinch-to-zoom level.
|
|
19040
|
+
* Sets the maximum and minimum pinch-to-zoom level. The page keeps its normal
|
|
19041
|
+
* scale until the user pinches; a `minimumLevel` below 1 only allows zooming out.
|
|
18938
19042
|
*
|
|
18939
19043
|
* > [!NOTE] Visual zoom is disabled by default in Electron. To re-enable it, call:
|
|
18940
19044
|
*/
|
|
@@ -18966,14 +19070,15 @@ declare namespace Electron {
|
|
|
18966
19070
|
* Changes the zoom factor to the specified factor. Zoom factor is zoom percent
|
|
18967
19071
|
* divided by 100, so 300% = 3.0.
|
|
18968
19072
|
*
|
|
18969
|
-
* The factor must be greater than 0.0.
|
|
19073
|
+
* The factor must be greater than 0.0. Values outside the range Chromium can
|
|
19074
|
+
* display (0.25 to 5.0) are clamped to it.
|
|
18970
19075
|
*/
|
|
18971
19076
|
setZoomFactor(factor: number): void;
|
|
18972
19077
|
/**
|
|
18973
19078
|
* Changes the zoom level to the specified level. The original size is 0 and each
|
|
18974
|
-
* increment above or below represents zooming 20% larger or smaller
|
|
18975
|
-
*
|
|
18976
|
-
*
|
|
19079
|
+
* increment above or below represents zooming 20% larger or smaller. The formula
|
|
19080
|
+
* for this is `scale := 1.2 ^ level`, and the level is clamped to the range
|
|
19081
|
+
* Chromium can display (25% to 500%, about -7.6 to 8.8).
|
|
18977
19082
|
*
|
|
18978
19083
|
* > [!NOTE] The zoom policy at the Chromium level is same-origin by default,
|
|
18979
19084
|
* meaning that the zoom level for a specific domain propagates across all
|
|
@@ -21812,18 +21917,20 @@ declare namespace Electron {
|
|
|
21812
21917
|
uploadToServer?: boolean;
|
|
21813
21918
|
/**
|
|
21814
21919
|
* If true, crashes generated in the main process will not be forwarded to the
|
|
21815
|
-
* system crash handler. Default is `false`.
|
|
21920
|
+
* system crash handler. This option has no effect on Windows. Default is `false`.
|
|
21921
|
+
*
|
|
21922
|
+
* @platform darwin,linux
|
|
21816
21923
|
*/
|
|
21817
21924
|
ignoreSystemCrashHandler?: boolean;
|
|
21818
21925
|
/**
|
|
21819
|
-
* If true, limit the number of crashes uploaded to 1/hour.
|
|
21820
|
-
*
|
|
21821
|
-
* @platform darwin,win32
|
|
21926
|
+
* If true, limit the number of crashes uploaded to 1/hour. Crash reports over the
|
|
21927
|
+
* limit are not uploaded, but are still stored on disk. Default is `false`.
|
|
21822
21928
|
*/
|
|
21823
21929
|
rateLimit?: boolean;
|
|
21824
21930
|
/**
|
|
21825
21931
|
* If true, crash reports will be compressed and uploaded with `Content-Encoding:
|
|
21826
|
-
* gzip`.
|
|
21932
|
+
* gzip`. Setting this to `false` while `uploadToServer` is `true` is deprecated
|
|
21933
|
+
* and logs a deprecation warning. Default is `true`.
|
|
21827
21934
|
*/
|
|
21828
21935
|
compress?: boolean;
|
|
21829
21936
|
/**
|
|
@@ -21840,7 +21947,8 @@ declare namespace Electron {
|
|
|
21840
21947
|
* crash reporter has been started. If a key is present in both the global extra
|
|
21841
21948
|
* parameters and the process-specific extra parameters, then the global one will
|
|
21842
21949
|
* take precedence. By default, `productName` and the app version are included, as
|
|
21843
|
-
* well as the Electron version.
|
|
21950
|
+
* well as the Electron version. Global extra parameters are not returned by
|
|
21951
|
+
* `getParameters()`.
|
|
21844
21952
|
*/
|
|
21845
21953
|
globalExtra?: Record<string, string>;
|
|
21846
21954
|
}
|
|
@@ -21973,9 +22081,17 @@ declare namespace Electron {
|
|
|
21973
22081
|
reason: ('clean-exit' | 'abnormal-exit' | 'killed' | 'crashed' | 'oom' | 'launch-failed' | 'integrity-failure' | 'memory-eviction');
|
|
21974
22082
|
/**
|
|
21975
22083
|
* The exit code for the process (e.g. status from waitpid if on POSIX, from
|
|
21976
|
-
* GetExitCodeProcess on Windows)
|
|
22084
|
+
* GetExitCodeProcess on Windows), unless `reason` is `launch-failed`, in which
|
|
22085
|
+
* case `exitCode` will be a platform-specific launch failure error code.
|
|
21977
22086
|
*/
|
|
21978
22087
|
exitCode: number;
|
|
22088
|
+
/**
|
|
22089
|
+
* The Windows system error code (`GetLastError()`) of the failed launch. Only set
|
|
22090
|
+
* when `reason` is `launch-failed`.
|
|
22091
|
+
*
|
|
22092
|
+
* @platform win32
|
|
22093
|
+
*/
|
|
22094
|
+
systemErrorCode?: number;
|
|
21979
22095
|
/**
|
|
21980
22096
|
* The non-localized name of the process.
|
|
21981
22097
|
*/
|
|
@@ -22741,6 +22857,20 @@ declare namespace Electron {
|
|
|
22741
22857
|
args?: string[];
|
|
22742
22858
|
}
|
|
22743
22859
|
|
|
22860
|
+
interface Match {
|
|
22861
|
+
/**
|
|
22862
|
+
* Host name to match, for standard schemes. It is compared with the URL's host as
|
|
22863
|
+
* a whole, case-insensitively; there is no wildcard or subdomain matching. Omit to
|
|
22864
|
+
* match any host.
|
|
22865
|
+
*/
|
|
22866
|
+
host?: string;
|
|
22867
|
+
/**
|
|
22868
|
+
* Path prefix to match, starting with `/` and written as it appears in a URL
|
|
22869
|
+
* (percent-encoded). Defaults to `/`.
|
|
22870
|
+
*/
|
|
22871
|
+
path?: string;
|
|
22872
|
+
}
|
|
22873
|
+
|
|
22744
22874
|
interface MenuItemConstructorOptions {
|
|
22745
22875
|
/**
|
|
22746
22876
|
* Will be called with `click(menuItem, window, event)` when the menu item is
|
|
@@ -24279,6 +24409,30 @@ declare namespace Electron {
|
|
|
24279
24409
|
topFrameSite: string;
|
|
24280
24410
|
}
|
|
24281
24411
|
|
|
24412
|
+
interface Source {
|
|
24413
|
+
/**
|
|
24414
|
+
* Must be `directory`.
|
|
24415
|
+
*/
|
|
24416
|
+
type: string;
|
|
24417
|
+
/**
|
|
24418
|
+
* Absolute path of the directory. The part of the URL's path after `match.path` is
|
|
24419
|
+
* resolved inside it; paths that would leave it are not served. May point into an
|
|
24420
|
+
* `asar` archive.
|
|
24421
|
+
*/
|
|
24422
|
+
root: string;
|
|
24423
|
+
/**
|
|
24424
|
+
* File served for a URL whose path ends in `/`. Defaults to `index.html`; an empty
|
|
24425
|
+
* string disables it.
|
|
24426
|
+
*/
|
|
24427
|
+
index?: string;
|
|
24428
|
+
/**
|
|
24429
|
+
* Response headers added to every file served by this route. Headers computed by
|
|
24430
|
+
* the file loader, including `Content-Type`, `Content-Length`, and
|
|
24431
|
+
* `Content-Range`, will override these supplied values.
|
|
24432
|
+
*/
|
|
24433
|
+
headers?: Record<string, string>;
|
|
24434
|
+
}
|
|
24435
|
+
|
|
24282
24436
|
interface SourcesOptions {
|
|
24283
24437
|
/**
|
|
24284
24438
|
* An array of strings that lists the types of desktop sources to be captured,
|
|
@@ -25717,6 +25871,7 @@ declare namespace Electron {
|
|
|
25717
25871
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
25718
25872
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
25719
25873
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
25874
|
+
type Match = Electron.Match;
|
|
25720
25875
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
25721
25876
|
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
25722
25877
|
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
@@ -25783,6 +25938,7 @@ declare namespace Electron {
|
|
|
25783
25938
|
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
25784
25939
|
type Settings = Electron.Settings;
|
|
25785
25940
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
25941
|
+
type Source = Electron.Source;
|
|
25786
25942
|
type SourcesOptions = Electron.SourcesOptions;
|
|
25787
25943
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
25788
25944
|
type StartTask = Electron.StartTask;
|
|
@@ -25917,6 +26073,8 @@ declare namespace Electron {
|
|
|
25917
26073
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
25918
26074
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
25919
26075
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
26076
|
+
type ProtocolRoute = Electron.ProtocolRoute;
|
|
26077
|
+
type ProtocolSource = Electron.ProtocolSource;
|
|
25920
26078
|
type ProxyConfig = Electron.ProxyConfig;
|
|
25921
26079
|
type Rectangle = Electron.Rectangle;
|
|
25922
26080
|
type Referrer = Electron.Referrer;
|
|
@@ -26141,6 +26299,7 @@ declare namespace Electron {
|
|
|
26141
26299
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
26142
26300
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
26143
26301
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
26302
|
+
type Match = Electron.Match;
|
|
26144
26303
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
26145
26304
|
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
26146
26305
|
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
@@ -26207,6 +26366,7 @@ declare namespace Electron {
|
|
|
26207
26366
|
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
26208
26367
|
type Settings = Electron.Settings;
|
|
26209
26368
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
26369
|
+
type Source = Electron.Source;
|
|
26210
26370
|
type SourcesOptions = Electron.SourcesOptions;
|
|
26211
26371
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
26212
26372
|
type StartTask = Electron.StartTask;
|
|
@@ -26341,6 +26501,8 @@ declare namespace Electron {
|
|
|
26341
26501
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
26342
26502
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
26343
26503
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
26504
|
+
type ProtocolRoute = Electron.ProtocolRoute;
|
|
26505
|
+
type ProtocolSource = Electron.ProtocolSource;
|
|
26344
26506
|
type ProxyConfig = Electron.ProxyConfig;
|
|
26345
26507
|
type Rectangle = Electron.Rectangle;
|
|
26346
26508
|
type Referrer = Electron.Referrer;
|
|
@@ -26489,6 +26651,7 @@ declare namespace Electron {
|
|
|
26489
26651
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
26490
26652
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
26491
26653
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
26654
|
+
type Match = Electron.Match;
|
|
26492
26655
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
26493
26656
|
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
26494
26657
|
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
@@ -26555,6 +26718,7 @@ declare namespace Electron {
|
|
|
26555
26718
|
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
26556
26719
|
type Settings = Electron.Settings;
|
|
26557
26720
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
26721
|
+
type Source = Electron.Source;
|
|
26558
26722
|
type SourcesOptions = Electron.SourcesOptions;
|
|
26559
26723
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
26560
26724
|
type StartTask = Electron.StartTask;
|
|
@@ -26689,6 +26853,8 @@ declare namespace Electron {
|
|
|
26689
26853
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
26690
26854
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
26691
26855
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
26856
|
+
type ProtocolRoute = Electron.ProtocolRoute;
|
|
26857
|
+
type ProtocolSource = Electron.ProtocolSource;
|
|
26692
26858
|
type ProxyConfig = Electron.ProxyConfig;
|
|
26693
26859
|
type Rectangle = Electron.Rectangle;
|
|
26694
26860
|
type Referrer = Electron.Referrer;
|
|
@@ -26839,6 +27005,7 @@ declare namespace Electron {
|
|
|
26839
27005
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
26840
27006
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
26841
27007
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
27008
|
+
type Match = Electron.Match;
|
|
26842
27009
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
26843
27010
|
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
26844
27011
|
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
@@ -26905,6 +27072,7 @@ declare namespace Electron {
|
|
|
26905
27072
|
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
26906
27073
|
type Settings = Electron.Settings;
|
|
26907
27074
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
27075
|
+
type Source = Electron.Source;
|
|
26908
27076
|
type SourcesOptions = Electron.SourcesOptions;
|
|
26909
27077
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
26910
27078
|
type StartTask = Electron.StartTask;
|
|
@@ -27039,6 +27207,8 @@ declare namespace Electron {
|
|
|
27039
27207
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
27040
27208
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
27041
27209
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
27210
|
+
type ProtocolRoute = Electron.ProtocolRoute;
|
|
27211
|
+
type ProtocolSource = Electron.ProtocolSource;
|
|
27042
27212
|
type ProxyConfig = Electron.ProxyConfig;
|
|
27043
27213
|
type Rectangle = Electron.Rectangle;
|
|
27044
27214
|
type Referrer = Electron.Referrer;
|
|
@@ -27285,6 +27455,7 @@ declare namespace Electron {
|
|
|
27285
27455
|
type LoadURLOptions = Electron.LoadURLOptions;
|
|
27286
27456
|
type LoginItemSettings = Electron.LoginItemSettings;
|
|
27287
27457
|
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
27458
|
+
type Match = Electron.Match;
|
|
27288
27459
|
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
27289
27460
|
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
27290
27461
|
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
@@ -27351,6 +27522,7 @@ declare namespace Electron {
|
|
|
27351
27522
|
type SessionSelectWebauthnAuthenticatorEventParams = Electron.SessionSelectWebauthnAuthenticatorEventParams;
|
|
27352
27523
|
type Settings = Electron.Settings;
|
|
27353
27524
|
type SharedDictionaryInfoOptions = Electron.SharedDictionaryInfoOptions;
|
|
27525
|
+
type Source = Electron.Source;
|
|
27354
27526
|
type SourcesOptions = Electron.SourcesOptions;
|
|
27355
27527
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
27356
27528
|
type StartTask = Electron.StartTask;
|
|
@@ -27485,6 +27657,8 @@ declare namespace Electron {
|
|
|
27485
27657
|
type ProtocolRequest = Electron.ProtocolRequest;
|
|
27486
27658
|
type ProtocolResponse = Electron.ProtocolResponse;
|
|
27487
27659
|
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
27660
|
+
type ProtocolRoute = Electron.ProtocolRoute;
|
|
27661
|
+
type ProtocolSource = Electron.ProtocolSource;
|
|
27488
27662
|
type ProxyConfig = Electron.ProxyConfig;
|
|
27489
27663
|
type Rectangle = Electron.Rectangle;
|
|
27490
27664
|
type Referrer = Electron.Referrer;
|
package/dist/version.json
CHANGED