electron-types 39.4.0 → 39.5.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 +16 -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@39.
|
|
14
|
+
npm install -D electron-types@39.5.0
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@39.
|
|
16
|
+
yarn add -D electron-types@39.5.0
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@39.
|
|
18
|
+
pnpm add -D electron-types@39.5.0
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 39.
|
|
1
|
+
// Type definitions for Electron 39.5.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
|
|
@@ -1942,7 +1942,7 @@ declare namespace Electron {
|
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Emitted when an update has been downloaded.
|
|
1944
1944
|
*
|
|
1945
|
-
*
|
|
1945
|
+
* With Squirrel.Windows only `releaseName` is available.
|
|
1946
1946
|
*
|
|
1947
1947
|
* > [!NOTE] It is not strictly necessary to handle this event. A successfully
|
|
1948
1948
|
* downloaded update will still be applied the next time the application starts.
|
|
@@ -20590,6 +20590,11 @@ declare namespace Electron {
|
|
|
20590
20590
|
}
|
|
20591
20591
|
|
|
20592
20592
|
interface FeedURLOptions {
|
|
20593
|
+
/**
|
|
20594
|
+
* The update server URL. For _Windows_ MSIX, this can be either a direct link to
|
|
20595
|
+
* an MSIX file (e.g., `https://example.com/update.msix`) or a JSON endpoint that
|
|
20596
|
+
* returns update information (see the Squirrel.Mac README for more information).
|
|
20597
|
+
*/
|
|
20593
20598
|
url: string;
|
|
20594
20599
|
/**
|
|
20595
20600
|
* HTTP request headers.
|
|
@@ -20603,6 +20608,13 @@ declare namespace Electron {
|
|
|
20603
20608
|
* @platform darwin
|
|
20604
20609
|
*/
|
|
20605
20610
|
serverType?: ('json' | 'default');
|
|
20611
|
+
/**
|
|
20612
|
+
* If `true`, allows downgrades to older versions for MSIX packages. Defaults to
|
|
20613
|
+
* `false`.
|
|
20614
|
+
*
|
|
20615
|
+
* @platform win32
|
|
20616
|
+
*/
|
|
20617
|
+
allowAnyVersion?: boolean;
|
|
20606
20618
|
}
|
|
20607
20619
|
|
|
20608
20620
|
interface FileIconOptions {
|
|
@@ -25788,8 +25800,8 @@ declare namespace NodeJS {
|
|
|
25788
25800
|
*/
|
|
25789
25801
|
readonly type: ('browser' | 'renderer' | 'service-worker' | 'worker' | 'utility');
|
|
25790
25802
|
/**
|
|
25791
|
-
* A `boolean`. If the app is running as
|
|
25792
|
-
* is `true`,
|
|
25803
|
+
* A `boolean`. If the app is running as an MSIX package (including AppX for
|
|
25804
|
+
* Windows Store), this property is `true`, otherwise it is `undefined`.
|
|
25793
25805
|
*
|
|
25794
25806
|
*/
|
|
25795
25807
|
readonly windowsStore: boolean;
|
package/dist/version.json
CHANGED