electron-types 45.0.0-alpha.4 → 45.0.0-alpha.5
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 +34 -7
- 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-alpha.
|
|
17
|
+
npm install -D electron-types@45.0.0-alpha.5
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@45.0.0-alpha.
|
|
19
|
+
yarn add -D electron-types@45.0.0-alpha.5
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@45.0.0-alpha.
|
|
21
|
+
pnpm add -D electron-types@45.0.0-alpha.5
|
|
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-alpha.
|
|
1
|
+
// Type definitions for Electron 45.0.0-alpha.5
|
|
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
|
|
@@ -7685,6 +7685,14 @@ declare namespace Electron {
|
|
|
7685
7685
|
* indicating the failure of the command.
|
|
7686
7686
|
*
|
|
7687
7687
|
* Send given command to the debugging target.
|
|
7688
|
+
*
|
|
7689
|
+
* > [!NOTE]
|
|
7690
|
+
*
|
|
7691
|
+
* * If `sendCommand` is called before the target has navigated (e.g. immediately
|
|
7692
|
+
* after `attach()`), the returned promise may not resolve until navigation occurs.
|
|
7693
|
+
* * If the command's response has no `result` data, as defined by that command's
|
|
7694
|
+
* entry in the remote debugging protocol, the promise resolves with an empty
|
|
7695
|
+
* object (`{}`), not `null` or `undefined`.
|
|
7688
7696
|
*/
|
|
7689
7697
|
sendCommand(method: string, commandParams?: any, sessionId?: string): Promise<any>;
|
|
7690
7698
|
}
|
|
@@ -9812,6 +9820,9 @@ declare namespace Electron {
|
|
|
9812
9820
|
* This property can be dynamically changed; setting it to `undefined` removes the
|
|
9813
9821
|
* badge. Only available on macOS 14 and up.
|
|
9814
9822
|
*
|
|
9823
|
+
* Badges are not displayed in Dock menus, though the same item shows its badge in
|
|
9824
|
+
* an application menu.
|
|
9825
|
+
*
|
|
9815
9826
|
* @platform darwin
|
|
9816
9827
|
*/
|
|
9817
9828
|
badge?: MenuItemBadge;
|
|
@@ -13624,8 +13635,12 @@ declare namespace Electron {
|
|
|
13624
13635
|
* is available and `useSystemPicker` is set to `true`, the handler will not be
|
|
13625
13636
|
* invoked.
|
|
13626
13637
|
*
|
|
13627
|
-
* Passing a WebFrameMain object as a video or audio stream
|
|
13628
|
-
*
|
|
13638
|
+
* Passing a WebFrameMain object as a video or audio stream captures the whole
|
|
13639
|
+
* `webContents` that contains that frame (the tab), not just the frame:
|
|
13640
|
+
* `request.frame` from an `<iframe>` therefore grants that iframe a capture of the
|
|
13641
|
+
* page that embeds it. Check `request.frame` before using it this way, and note
|
|
13642
|
+
* that the callback throws if the frame has been destroyed by the time it is
|
|
13643
|
+
* called.
|
|
13629
13644
|
*
|
|
13630
13645
|
* Passing `null` instead of a function resets the handler to its default state.
|
|
13631
13646
|
*/
|
|
@@ -22152,6 +22167,15 @@ declare namespace Electron {
|
|
|
22152
22167
|
* The blocked path attempting to be accessed.
|
|
22153
22168
|
*/
|
|
22154
22169
|
path: string;
|
|
22170
|
+
/**
|
|
22171
|
+
* The frame that initiated access. May be `null` if the frame has since been
|
|
22172
|
+
* destroyed.
|
|
22173
|
+
*/
|
|
22174
|
+
frame: (WebFrameMain) | (null);
|
|
22175
|
+
/**
|
|
22176
|
+
* The WebContents that contains `frame`.
|
|
22177
|
+
*/
|
|
22178
|
+
webContents: (WebContents) | (null);
|
|
22155
22179
|
}
|
|
22156
22180
|
|
|
22157
22181
|
interface FindInPageOptions {
|
|
@@ -22742,6 +22766,7 @@ declare namespace Electron {
|
|
|
22742
22766
|
/**
|
|
22743
22767
|
* A badge shown alongside the label, either a system-styled count (`alerts`,
|
|
22744
22768
|
* `updates`, `new-items`) or a custom string. Only available on macOS 14 and up.
|
|
22769
|
+
* Not displayed in Dock menus.
|
|
22745
22770
|
*
|
|
22746
22771
|
* @platform darwin
|
|
22747
22772
|
*/
|
|
@@ -23527,7 +23552,8 @@ declare namespace Electron {
|
|
|
23527
23552
|
*/
|
|
23528
23553
|
embeddingOrigin?: string;
|
|
23529
23554
|
/**
|
|
23530
|
-
* The
|
|
23555
|
+
* The origin of the requesting frame, for `media`, `hid`, `usb` and `serial`
|
|
23556
|
+
* checks.
|
|
23531
23557
|
*/
|
|
23532
23558
|
securityOrigin?: string;
|
|
23533
23559
|
/**
|
|
@@ -23535,8 +23561,8 @@ declare namespace Electron {
|
|
|
23535
23561
|
*/
|
|
23536
23562
|
mediaType?: ('video' | 'audio' | 'unknown');
|
|
23537
23563
|
/**
|
|
23538
|
-
* The last URL the requesting frame loaded.
|
|
23539
|
-
*
|
|
23564
|
+
* The last URL the requesting frame loaded. Not provided when the check is not
|
|
23565
|
+
* made on behalf of a document (for example for a service worker).
|
|
23540
23566
|
*/
|
|
23541
23567
|
requestingUrl?: string;
|
|
23542
23568
|
/**
|
|
@@ -24169,7 +24195,8 @@ declare namespace Electron {
|
|
|
24169
24195
|
/**
|
|
24170
24196
|
* If a string is specified, can be `loopback` or `loopbackWithMute`. Specifying a
|
|
24171
24197
|
* loopback device will capture system audio, and is currently only supported on
|
|
24172
|
-
* Windows. If a WebFrameMain is specified, will capture audio from
|
|
24198
|
+
* Windows. If a WebFrameMain is specified, will capture audio from the
|
|
24199
|
+
* `webContents` that contains that frame.
|
|
24173
24200
|
*/
|
|
24174
24201
|
audio?: (('loopback' | 'loopbackWithMute')) | (WebFrameMain);
|
|
24175
24202
|
/**
|
package/dist/version.json
CHANGED