electron-types 39.2.6 → 39.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) Electron contributors
4
- Copyright (c) 2024 electron-types contributors
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
- # Replace X.Y.Z with your Electron version (e.g., 39.2.7)
15
- npm install -D electron-types@X.Y.Z
14
+ npm install -D electron-types@39.3.0
16
15
  # or
17
- yarn add -D electron-types@X.Y.Z
16
+ yarn add -D electron-types@39.3.0
18
17
  # or
19
- pnpm add -D electron-types@X.Y.Z
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@39.3.0
36
19
  ```
37
20
 
38
21
  ## Usage
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 39.2.6
1
+ // Type definitions for Electron 39.3.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
@@ -3824,10 +3824,9 @@ declare namespace Electron {
3824
3824
  */
3825
3825
  resizable?: boolean;
3826
3826
  /**
3827
- * Whether frameless window should have rounded corners. Default is `true`. Setting
3828
- * this property to `false` will prevent the window from being fullscreenable on
3829
- * macOS. On Windows versions older than Windows 11 Build 22000 this property has
3830
- * no effect, and frameless windows will not have rounded corners.
3827
+ * Whether frameless window should have rounded corners. Default is `true`. On
3828
+ * Windows versions older than Windows 11 Build 22000 this property has no effect,
3829
+ * and frameless windows will not have rounded corners.
3831
3830
  *
3832
3831
  * @platform darwin,win32
3833
3832
  */
@@ -17794,10 +17793,11 @@ declare namespace Electron {
17794
17793
  */
17795
17794
  frameRate: number;
17796
17795
  /**
17797
- * A `WebContents` instance that might own this `WebContents`.
17796
+ * A `WebContents | null` property that represents a `WebContents` instance that
17797
+ * might own this `WebContents`.
17798
17798
  *
17799
17799
  */
17800
- readonly hostWebContents: WebContents;
17800
+ readonly hostWebContents: (WebContents) | (null);
17801
17801
  /**
17802
17802
  * A `Integer` representing the unique ID of this WebContents. Each ID is unique
17803
17803
  * among all `WebContents` instances of the entire Electron application.
package/dist/version.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "electronVersion": "39.2.6",
3
- "extractedAt": "2025-12-24T03:16:18.431Z"
2
+ "electronVersion": "39.3.0",
3
+ "extractedAt": "2026-01-21T18:21:19.173Z"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-types",
3
- "version": "39.2.6",
3
+ "version": "39.3.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript type definitions extracted from the electron package",
6
6
  "types": "./dist/electron.d.ts",