electron-types 43.0.0-alpha.1 → 43.0.0-alpha.2
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 +7 -3
- package/dist/electron.d.ts +21 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# electron-types
|
|
2
2
|
|
|
3
|
+
[](https://github.com/biw/electron-types/actions)
|
|
4
|
+
[](https://www.npmjs.com/package/electron-types)
|
|
5
|
+
[](https://www.npmjs.com/package/electron-types)
|
|
6
|
+
|
|
3
7
|
TypeScript type definitions extracted from the [electron](https://www.electronjs.org/) package.
|
|
4
8
|
|
|
5
9
|
## Why?
|
|
@@ -11,11 +15,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
11
15
|
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
16
|
|
|
13
17
|
```bash
|
|
14
|
-
npm install -D electron-types@43.0.0-alpha.
|
|
18
|
+
npm install -D electron-types@43.0.0-alpha.2
|
|
15
19
|
# or
|
|
16
|
-
yarn add -D electron-types@43.0.0-alpha.
|
|
20
|
+
yarn add -D electron-types@43.0.0-alpha.2
|
|
17
21
|
# or
|
|
18
|
-
pnpm add -D electron-types@43.0.0-alpha.
|
|
22
|
+
pnpm add -D electron-types@43.0.0-alpha.2
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 43.0.0-alpha.2
|
|
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
|
|
@@ -20295,6 +20295,12 @@ declare namespace Electron {
|
|
|
20295
20295
|
* Defaults to 1.0.
|
|
20296
20296
|
*/
|
|
20297
20297
|
scaleFactor?: number;
|
|
20298
|
+
/**
|
|
20299
|
+
* The target color space for the output pixel data. Defaults to sRGB. Pass the
|
|
20300
|
+
* image's original color space to preserve the previous behavior, or another color
|
|
20301
|
+
* space to get pixel values in that space.
|
|
20302
|
+
*/
|
|
20303
|
+
colorSpace?: ColorSpace;
|
|
20298
20304
|
}
|
|
20299
20305
|
|
|
20300
20306
|
interface BlinkMemoryInfo {
|
|
@@ -23601,6 +23607,12 @@ declare namespace Electron {
|
|
|
23601
23607
|
* Defaults to 1.0.
|
|
23602
23608
|
*/
|
|
23603
23609
|
scaleFactor?: number;
|
|
23610
|
+
/**
|
|
23611
|
+
* The target color space for the output pixel data. Defaults to sRGB. Pass the
|
|
23612
|
+
* image's original color space to preserve the previous behavior, or another color
|
|
23613
|
+
* space to get pixel values in that space.
|
|
23614
|
+
*/
|
|
23615
|
+
colorSpace?: ColorSpace;
|
|
23604
23616
|
}
|
|
23605
23617
|
|
|
23606
23618
|
interface ToDataURLOptions {
|
|
@@ -24646,6 +24658,14 @@ declare namespace Electron {
|
|
|
24646
24658
|
* `<TEAM_ID>.<BUNDLE_ID>.webauthn`.
|
|
24647
24659
|
*/
|
|
24648
24660
|
keychainAccessGroup: string;
|
|
24661
|
+
/**
|
|
24662
|
+
* Customizes the reason text shown in the macOS Touch ID prompt. macOS renders the
|
|
24663
|
+
* prompt as `"<App Name>" is trying to <promptReason>`, so the value should be a
|
|
24664
|
+
* lowercase sentence fragment. An optional `$1` placeholder is replaced with the
|
|
24665
|
+
* relying party ID (e.g. `example.com`) of the request being authenticated.
|
|
24666
|
+
* Defaults to `verify your identity on $1`.
|
|
24667
|
+
*/
|
|
24668
|
+
promptReason?: string;
|
|
24649
24669
|
}
|
|
24650
24670
|
|
|
24651
24671
|
interface Video {
|
package/dist/version.json
CHANGED