electron-types 40.2.1 → 40.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/README.md +3 -3
- package/dist/electron.d.ts +5 -4
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,11 +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
|
-
npm install -D electron-types@40.
|
|
14
|
+
npm install -D electron-types@40.3.0
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@40.
|
|
16
|
+
yarn add -D electron-types@40.3.0
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@40.
|
|
18
|
+
pnpm add -D electron-types@40.3.0
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 40.
|
|
1
|
+
// Type definitions for Electron 40.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
|
|
@@ -9342,9 +9342,9 @@ declare namespace Electron {
|
|
|
9342
9342
|
*/
|
|
9343
9343
|
constructor(options: MenuItemConstructorOptions);
|
|
9344
9344
|
/**
|
|
9345
|
-
* An `Accelerator`
|
|
9345
|
+
* An `Accelerator | null` indicating the item's accelerator, if set.
|
|
9346
9346
|
*/
|
|
9347
|
-
accelerator
|
|
9347
|
+
accelerator: (Accelerator) | (null);
|
|
9348
9348
|
/**
|
|
9349
9349
|
* A `boolean` indicating whether the item is checked. This property can be
|
|
9350
9350
|
* dynamically changed.
|
|
@@ -17836,7 +17836,8 @@ declare namespace Electron {
|
|
|
17836
17836
|
setDevToolsWebContents(devToolsWebContents: WebContents): void;
|
|
17837
17837
|
/**
|
|
17838
17838
|
* If _offscreen rendering_ is enabled sets the frame rate to the specified number.
|
|
17839
|
-
*
|
|
17839
|
+
* When `webPreferences.offscreen.useSharedTexture` is `false` only values between
|
|
17840
|
+
* 1 and 240 are accepted.
|
|
17840
17841
|
*/
|
|
17841
17842
|
setFrameRate(fps: number): void;
|
|
17842
17843
|
/**
|
package/dist/version.json
CHANGED