electron-types 42.0.0 → 42.1.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 +7 -3
- package/dist/electron.d.ts +9 -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@42.
|
|
18
|
+
npm install -D electron-types@42.1.0
|
|
15
19
|
# or
|
|
16
|
-
yarn add -D electron-types@42.
|
|
20
|
+
yarn add -D electron-types@42.1.0
|
|
17
21
|
# or
|
|
18
|
-
pnpm add -D electron-types@42.
|
|
22
|
+
pnpm add -D electron-types@42.1.0
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 42.
|
|
1
|
+
// Type definitions for Electron 42.1.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
|
|
@@ -24498,6 +24498,14 @@ declare namespace Electron {
|
|
|
24498
24498
|
* `<TEAM_ID>.<BUNDLE_ID>.webauthn`.
|
|
24499
24499
|
*/
|
|
24500
24500
|
keychainAccessGroup: string;
|
|
24501
|
+
/**
|
|
24502
|
+
* Customizes the reason text shown in the macOS Touch ID prompt. macOS renders the
|
|
24503
|
+
* prompt as `"<App Name>" is trying to <promptReason>`, so the value should be a
|
|
24504
|
+
* lowercase sentence fragment. An optional `$1` placeholder is replaced with the
|
|
24505
|
+
* relying party ID (e.g. `example.com`) of the request being authenticated.
|
|
24506
|
+
* Defaults to `verify your identity on $1`.
|
|
24507
|
+
*/
|
|
24508
|
+
promptReason?: string;
|
|
24501
24509
|
}
|
|
24502
24510
|
|
|
24503
24511
|
interface Video {
|
package/dist/version.json
CHANGED