electron-types 44.0.0 → 44.1.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 +15 -13
- 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.1.1
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@44.
|
|
19
|
+
yarn add -D electron-types@44.1.1
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@44.
|
|
21
|
+
pnpm add -D electron-types@44.1.1
|
|
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.1.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
|
|
@@ -518,27 +518,27 @@ declare namespace Electron {
|
|
|
518
518
|
* page.
|
|
519
519
|
*/
|
|
520
520
|
on(event: 'login', listener: (event: Event,
|
|
521
|
-
webContents: WebContents,
|
|
521
|
+
webContents: (WebContents) | (null),
|
|
522
522
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
523
523
|
authInfo: AuthInfo,
|
|
524
524
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
525
525
|
off(event: 'login', listener: (event: Event,
|
|
526
|
-
webContents: WebContents,
|
|
526
|
+
webContents: (WebContents) | (null),
|
|
527
527
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
528
528
|
authInfo: AuthInfo,
|
|
529
529
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
530
530
|
once(event: 'login', listener: (event: Event,
|
|
531
|
-
webContents: WebContents,
|
|
531
|
+
webContents: (WebContents) | (null),
|
|
532
532
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
533
533
|
authInfo: AuthInfo,
|
|
534
534
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
535
535
|
addListener(event: 'login', listener: (event: Event,
|
|
536
|
-
webContents: WebContents,
|
|
536
|
+
webContents: (WebContents) | (null),
|
|
537
537
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
538
538
|
authInfo: AuthInfo,
|
|
539
539
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
540
540
|
removeListener(event: 'login', listener: (event: Event,
|
|
541
|
-
webContents: WebContents,
|
|
541
|
+
webContents: (WebContents) | (null),
|
|
542
542
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
543
543
|
authInfo: AuthInfo,
|
|
544
544
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
@@ -815,27 +815,27 @@ declare namespace Electron {
|
|
|
815
815
|
* event is not emitted.
|
|
816
816
|
*/
|
|
817
817
|
on(event: 'select-client-certificate', listener: (event: Event,
|
|
818
|
-
webContents: WebContents,
|
|
818
|
+
webContents: (WebContents) | (null),
|
|
819
819
|
url: string,
|
|
820
820
|
certificateList: Certificate[],
|
|
821
821
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
822
822
|
off(event: 'select-client-certificate', listener: (event: Event,
|
|
823
|
-
webContents: WebContents,
|
|
823
|
+
webContents: (WebContents) | (null),
|
|
824
824
|
url: string,
|
|
825
825
|
certificateList: Certificate[],
|
|
826
826
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
827
827
|
once(event: 'select-client-certificate', listener: (event: Event,
|
|
828
|
-
webContents: WebContents,
|
|
828
|
+
webContents: (WebContents) | (null),
|
|
829
829
|
url: string,
|
|
830
830
|
certificateList: Certificate[],
|
|
831
831
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
832
832
|
addListener(event: 'select-client-certificate', listener: (event: Event,
|
|
833
|
-
webContents: WebContents,
|
|
833
|
+
webContents: (WebContents) | (null),
|
|
834
834
|
url: string,
|
|
835
835
|
certificateList: Certificate[],
|
|
836
836
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
837
837
|
removeListener(event: 'select-client-certificate', listener: (event: Event,
|
|
838
|
-
webContents: WebContents,
|
|
838
|
+
webContents: (WebContents) | (null),
|
|
839
839
|
url: string,
|
|
840
840
|
certificateList: Certificate[],
|
|
841
841
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
@@ -9687,6 +9687,8 @@ declare namespace Electron {
|
|
|
9687
9687
|
* or just displayed.
|
|
9688
9688
|
*
|
|
9689
9689
|
* This property can be dynamically changed.
|
|
9690
|
+
*
|
|
9691
|
+
* @platform linux,win32
|
|
9690
9692
|
*/
|
|
9691
9693
|
registerAccelerator: boolean;
|
|
9692
9694
|
/**
|
|
@@ -13403,7 +13405,7 @@ declare namespace Electron {
|
|
|
13403
13405
|
* > [!NOTE] `isMainFrame` will always be `false` for a `fileSystem` request as a
|
|
13404
13406
|
* result of Chromium limitations.
|
|
13405
13407
|
*/
|
|
13406
|
-
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'clipboard-read' | 'clipboard-sanitized-write' | '
|
|
13408
|
+
setPermissionCheckHandler(handler: ((webContents: (WebContents) | (null), permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'top-level-storage-access' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', requestingOrigin: string, details: PermissionCheckHandlerHandlerDetails) => boolean) | (null)): void;
|
|
13407
13409
|
/**
|
|
13408
13410
|
* Sets the handler which can be used to respond to permission requests for the
|
|
13409
13411
|
* `session`. Calling `callback(true)` will allow the permission and
|
|
@@ -13412,7 +13414,7 @@ declare namespace Electron {
|
|
|
13412
13414
|
* `setPermissionCheckHandler` to get complete permission handling. Most web APIs
|
|
13413
13415
|
* do a permission check and then make a permission request if the check is denied.
|
|
13414
13416
|
*/
|
|
13415
|
-
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'clipboard-read' | 'clipboard-sanitized-write' | 'display-capture' | 'fullscreen' | 'geolocation' | 'idle-detection' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'notifications' | 'pointerLock' | '
|
|
13417
|
+
setPermissionRequestHandler(handler: ((webContents: WebContents, permission: 'ar' | 'automatic-fullscreen' | 'background-fetch' | 'background-sync' | 'captured-surface-control' | 'clipboard-read' | 'clipboard-sanitized-write' | 'deprecated-sync-clipboard-read' | 'display-capture' | 'fileSystem' | 'fullscreen' | 'geolocation' | 'geolocation-approximate' | 'hand-tracking' | 'hid' | 'idle-detection' | 'keyboardLock' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'media' | 'mediaKeySystem' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'openExternal' | 'payment-handler' | 'periodic-background-sync' | 'persistent-storage' | 'pointerLock' | 'screen-wake-lock' | 'sensors' | 'serial' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'system-wake-lock' | 'top-level-storage-access' | 'usb' | 'vr' | 'web-app-installation' | 'web-printing' | 'window-management' | 'unknown', callback: (permissionGranted: boolean) => void, details: (PermissionRequest) | (FilesystemPermissionRequest) | (MediaAccessPermissionRequest) | (OpenExternalPermissionRequest)) => void) | (null)): void;
|
|
13416
13418
|
/**
|
|
13417
13419
|
* Adds scripts that will be executed on ALL web contents that are associated with
|
|
13418
13420
|
* this session just before normal `preload` scripts run.
|
package/dist/version.json
CHANGED