electron-types 44.4.3 → 44.4.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 +8 -1
- 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.4.
|
|
17
|
+
npm install -D electron-types@44.4.5
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@44.4.
|
|
19
|
+
yarn add -D electron-types@44.4.5
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@44.4.
|
|
21
|
+
pnpm add -D electron-types@44.4.5
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.4.
|
|
1
|
+
// Type definitions for Electron 44.4.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
|
|
@@ -2953,6 +2953,10 @@ declare namespace Electron {
|
|
|
2953
2953
|
isContentProtected(): boolean;
|
|
2954
2954
|
/**
|
|
2955
2955
|
* Whether the window is destroyed.
|
|
2956
|
+
*
|
|
2957
|
+
* > [!NOTE] Once a window is destroyed, accessing most of its other properties and
|
|
2958
|
+
* methods throws `Object has been destroyed`, so callbacks that may run after the
|
|
2959
|
+
* window is gone should guard with `isDestroyed()`.
|
|
2956
2960
|
*/
|
|
2957
2961
|
isDestroyed(): boolean;
|
|
2958
2962
|
/**
|
|
@@ -6654,6 +6658,9 @@ declare namespace Electron {
|
|
|
6654
6658
|
*
|
|
6655
6659
|
* See the `webContents` documentation for its methods and events.
|
|
6656
6660
|
*
|
|
6661
|
+
* > [!NOTE] Reading this property throws `Object has been destroyed` once the
|
|
6662
|
+
* window has been destroyed; see `win.isDestroyed()`.
|
|
6663
|
+
*
|
|
6657
6664
|
*/
|
|
6658
6665
|
readonly webContents: WebContents;
|
|
6659
6666
|
}
|
package/dist/version.json
CHANGED