electron-types 45.0.0-alpha.10 → 45.0.0-alpha.12
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 +12 -3
- 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.12
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@45.0.0-alpha.
|
|
19
|
+
yarn add -D electron-types@45.0.0-alpha.12
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@45.0.0-alpha.
|
|
21
|
+
pnpm add -D electron-types@45.0.0-alpha.12
|
|
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.12
|
|
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;
|
|
@@ -21980,9 +21981,17 @@ declare namespace Electron {
|
|
|
21980
21981
|
reason: ('clean-exit' | 'abnormal-exit' | 'killed' | 'crashed' | 'oom' | 'launch-failed' | 'integrity-failure' | 'memory-eviction');
|
|
21981
21982
|
/**
|
|
21982
21983
|
* The exit code for the process (e.g. status from waitpid if on POSIX, from
|
|
21983
|
-
* GetExitCodeProcess on Windows)
|
|
21984
|
+
* GetExitCodeProcess on Windows), unless `reason` is `launch-failed`, in which
|
|
21985
|
+
* case `exitCode` will be a platform-specific launch failure error code.
|
|
21984
21986
|
*/
|
|
21985
21987
|
exitCode: number;
|
|
21988
|
+
/**
|
|
21989
|
+
* The Windows system error code (`GetLastError()`) of the failed launch. Only set
|
|
21990
|
+
* when `reason` is `launch-failed`.
|
|
21991
|
+
*
|
|
21992
|
+
* @platform win32
|
|
21993
|
+
*/
|
|
21994
|
+
systemErrorCode?: number;
|
|
21986
21995
|
/**
|
|
21987
21996
|
* The non-localized name of the process.
|
|
21988
21997
|
*/
|
package/dist/version.json
CHANGED