electron-types 45.0.0-alpha.6 → 45.0.0-alpha.7
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 +15 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
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)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@45.0.0-alpha.
|
|
17
|
+
npm install -D electron-types@45.0.0-alpha.7
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@45.0.0-alpha.
|
|
19
|
+
yarn add -D electron-types@45.0.0-alpha.7
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@45.0.0-alpha.
|
|
21
|
+
pnpm add -D electron-types@45.0.0-alpha.7
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 45.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 45.0.0-alpha.7
|
|
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
|
|
@@ -12212,6 +12212,12 @@ declare namespace Electron {
|
|
|
12212
12212
|
/**
|
|
12213
12213
|
* the decrypted string. Decrypts the encrypted buffer obtained with
|
|
12214
12214
|
* `safeStorage.encryptString` back into a string.
|
|
12215
|
+
*
|
|
12216
|
+
* **Deprecated:** Use `safeStorage.decryptStringAsync(encrypted)` instead. Data
|
|
12217
|
+
* encrypted with `safeStorage.encryptString` can be decrypted with
|
|
12218
|
+
* `safeStorage.decryptStringAsync`.
|
|
12219
|
+
*
|
|
12220
|
+
* @deprecated
|
|
12215
12221
|
*/
|
|
12216
12222
|
decryptString(encrypted: Buffer): string;
|
|
12217
12223
|
/**
|
|
@@ -12228,6 +12234,10 @@ declare namespace Electron {
|
|
|
12228
12234
|
* An array of bytes representing the encrypted string.
|
|
12229
12235
|
*
|
|
12230
12236
|
* This function will throw an error if encryption fails.
|
|
12237
|
+
*
|
|
12238
|
+
* **Deprecated:** Use `safeStorage.encryptStringAsync(plainText)` instead.
|
|
12239
|
+
*
|
|
12240
|
+
* @deprecated
|
|
12231
12241
|
*/
|
|
12232
12242
|
encryptString(plainText: string): Buffer;
|
|
12233
12243
|
/**
|
|
@@ -12271,6 +12281,10 @@ declare namespace Electron {
|
|
|
12271
12281
|
* On Linux, returns true if the app has emitted the `ready` event and the secret
|
|
12272
12282
|
* key is available. On MacOS, returns true if Keychain is available. On Windows,
|
|
12273
12283
|
* returns true once the app has emitted the `ready` event.
|
|
12284
|
+
*
|
|
12285
|
+
* **Deprecated:** Use `safeStorage.isAsyncEncryptionAvailable()` instead.
|
|
12286
|
+
*
|
|
12287
|
+
* @deprecated
|
|
12274
12288
|
*/
|
|
12275
12289
|
isEncryptionAvailable(): boolean;
|
|
12276
12290
|
/**
|
package/dist/version.json
CHANGED