electron-types 38.7.1 → 38.8.0
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/LICENSE +1 -1
- package/README.md +3 -20
- package/dist/electron.d.ts +5 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) Electron contributors
|
|
4
|
-
Copyright (c)
|
|
4
|
+
Copyright (c) 2025 Ben Williams
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -11,28 +11,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
11
11
|
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)):
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
15
|
-
npm install -D electron-types@X.Y.Z
|
|
14
|
+
npm install -D electron-types@38.8.0
|
|
16
15
|
# or
|
|
17
|
-
yarn add -D electron-types@
|
|
16
|
+
yarn add -D electron-types@38.8.0
|
|
18
17
|
# or
|
|
19
|
-
pnpm add -D electron-types@
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
You can also use semver ranges to stay compatible with your Electron version:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Match any 39.x.x version
|
|
26
|
-
npm install -D electron-types@^39.0.0
|
|
27
|
-
|
|
28
|
-
# Match any 39.2.x version
|
|
29
|
-
npm install -D electron-types@~39.2.0
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Or install without a version to get the latest:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
npm install -D electron-types
|
|
18
|
+
pnpm add -D electron-types@38.8.0
|
|
36
19
|
```
|
|
37
20
|
|
|
38
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 38.
|
|
1
|
+
// Type definitions for Electron 38.8.0
|
|
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
|
|
@@ -24539,6 +24539,8 @@ declare namespace Electron {
|
|
|
24539
24539
|
type IncomingMessage = Electron.IncomingMessage;
|
|
24540
24540
|
const net: Net;
|
|
24541
24541
|
type Net = Electron.Net;
|
|
24542
|
+
const parentPort: ParentPort;
|
|
24543
|
+
type ParentPort = Electron.ParentPort;
|
|
24542
24544
|
const systemPreferences: SystemPreferences;
|
|
24543
24545
|
type SystemPreferences = Electron.SystemPreferences;
|
|
24544
24546
|
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
@@ -24887,6 +24889,8 @@ declare namespace Electron {
|
|
|
24887
24889
|
const netLog: NetLog;
|
|
24888
24890
|
type NetLog = Electron.NetLog;
|
|
24889
24891
|
class Notification extends Electron.Notification {}
|
|
24892
|
+
const parentPort: ParentPort;
|
|
24893
|
+
type ParentPort = Electron.ParentPort;
|
|
24890
24894
|
const powerMonitor: PowerMonitor;
|
|
24891
24895
|
type PowerMonitor = Electron.PowerMonitor;
|
|
24892
24896
|
const powerSaveBlocker: PowerSaveBlocker;
|
package/dist/version.json
CHANGED