electron-types 41.0.0-alpha.4 → 41.0.0-alpha.5
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 +19 -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@41.0.0-alpha.
|
|
14
|
+
npm install -D electron-types@41.0.0-alpha.5
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@41.0.0-alpha.
|
|
16
|
+
yarn add -D electron-types@41.0.0-alpha.5
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@41.0.0-alpha.
|
|
18
|
+
pnpm add -D electron-types@41.0.0-alpha.5
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 41.0.0-alpha.
|
|
1
|
+
// Type definitions for Electron 41.0.0-alpha.5
|
|
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
|
|
@@ -1151,6 +1151,9 @@ declare namespace Electron {
|
|
|
1151
1151
|
*
|
|
1152
1152
|
* Using `basic` should be preferred if only basic information like `vendorId` or
|
|
1153
1153
|
* `deviceId` is needed.
|
|
1154
|
+
*
|
|
1155
|
+
* Promise is rejected if the GPU is completely disabled, i.e. no hardware and
|
|
1156
|
+
* software implementations are available.
|
|
1154
1157
|
*/
|
|
1155
1158
|
getGPUInfo(infoType: 'basic' | 'complete'): Promise<unknown>;
|
|
1156
1159
|
/**
|
|
@@ -1942,7 +1945,7 @@ declare namespace Electron {
|
|
|
1942
1945
|
/**
|
|
1943
1946
|
* Emitted when an update has been downloaded.
|
|
1944
1947
|
*
|
|
1945
|
-
*
|
|
1948
|
+
* With Squirrel.Windows only `releaseName` is available.
|
|
1946
1949
|
*
|
|
1947
1950
|
* > [!NOTE] It is not strictly necessary to handle this event. A successfully
|
|
1948
1951
|
* downloaded update will still be applied the next time the application starts.
|
|
@@ -20791,6 +20794,11 @@ declare namespace Electron {
|
|
|
20791
20794
|
}
|
|
20792
20795
|
|
|
20793
20796
|
interface FeedURLOptions {
|
|
20797
|
+
/**
|
|
20798
|
+
* The update server URL. For _Windows_ MSIX, this can be either a direct link to
|
|
20799
|
+
* an MSIX file (e.g., `https://example.com/update.msix`) or a JSON endpoint that
|
|
20800
|
+
* returns update information (see the Squirrel.Mac README for more information).
|
|
20801
|
+
*/
|
|
20794
20802
|
url: string;
|
|
20795
20803
|
/**
|
|
20796
20804
|
* HTTP request headers.
|
|
@@ -20804,6 +20812,13 @@ declare namespace Electron {
|
|
|
20804
20812
|
* @platform darwin
|
|
20805
20813
|
*/
|
|
20806
20814
|
serverType?: ('json' | 'default');
|
|
20815
|
+
/**
|
|
20816
|
+
* If `true`, allows downgrades to older versions for MSIX packages. Defaults to
|
|
20817
|
+
* `false`.
|
|
20818
|
+
*
|
|
20819
|
+
* @platform win32
|
|
20820
|
+
*/
|
|
20821
|
+
allowAnyVersion?: boolean;
|
|
20807
20822
|
}
|
|
20808
20823
|
|
|
20809
20824
|
interface FileIconOptions {
|
|
@@ -26072,8 +26087,8 @@ declare namespace NodeJS {
|
|
|
26072
26087
|
*/
|
|
26073
26088
|
readonly type: ('browser' | 'renderer' | 'service-worker' | 'worker' | 'utility');
|
|
26074
26089
|
/**
|
|
26075
|
-
* A `boolean`. If the app is running as
|
|
26076
|
-
* is `true`,
|
|
26090
|
+
* A `boolean`. If the app is running as an MSIX package (including AppX for
|
|
26091
|
+
* Windows Store), this property is `true`, otherwise it is `undefined`.
|
|
26077
26092
|
*
|
|
26078
26093
|
*/
|
|
26079
26094
|
readonly windowsStore: boolean;
|
package/dist/version.json
CHANGED