electron-types 39.6.0 → 39.7.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 +30 -15
- 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.7.0
|
|
15
15
|
# or
|
|
16
|
-
yarn add -D electron-types@39.
|
|
16
|
+
yarn add -D electron-types@39.7.0
|
|
17
17
|
# or
|
|
18
|
-
pnpm add -D electron-types@39.
|
|
18
|
+
pnpm add -D electron-types@39.7.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.7.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
|
|
@@ -517,7 +517,10 @@ declare namespace Electron {
|
|
|
517
517
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
518
518
|
/**
|
|
519
519
|
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
520
|
-
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier
|
|
520
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
521
|
+
*
|
|
522
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
523
|
+
* expected.
|
|
521
524
|
*
|
|
522
525
|
* @platform darwin
|
|
523
526
|
*/
|
|
@@ -1207,7 +1210,7 @@ declare namespace Electron {
|
|
|
1207
1210
|
* indicates that the app should restore the windows that were open the last time
|
|
1208
1211
|
* the app was closed. This setting is not available on MAS builds or on macOS 13
|
|
1209
1212
|
* and up.
|
|
1210
|
-
* * `status` string _macOS_ - can be
|
|
1213
|
+
* * `status` string _macOS_ - can be `not-registered`, `enabled`,
|
|
1211
1214
|
* `requires-approval`, or `not-found`.
|
|
1212
1215
|
* * `executableWillLaunchAtLogin` boolean _Windows_ - `true` if app is set to open
|
|
1213
1216
|
* at login and its run key is not deactivated. This differs from `openAtLogin` as
|
|
@@ -1219,7 +1222,7 @@ declare namespace Electron {
|
|
|
1219
1222
|
* registry entry.
|
|
1220
1223
|
* * `args` string[] _Windows_ - the command-line arguments to pass to the
|
|
1221
1224
|
* executable.
|
|
1222
|
-
* * `scope` string _Windows_ -
|
|
1225
|
+
* * `scope` string _Windows_ - can be `user` or `machine`. Indicates whether the
|
|
1223
1226
|
* registry entry is under `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.
|
|
1224
1227
|
* * `enabled` boolean _Windows_ - `true` if the app registry key is startup
|
|
1225
1228
|
* approved and therefore shows as `enabled` in Task Manager and Windows settings.
|
|
@@ -2185,7 +2188,11 @@ declare namespace Electron {
|
|
|
2185
2188
|
*/
|
|
2186
2189
|
removeListener(event: 'moved', listener: () => void): this;
|
|
2187
2190
|
/**
|
|
2188
|
-
* Emitted when the native new tab button
|
|
2191
|
+
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
2192
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
2193
|
+
*
|
|
2194
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
2195
|
+
* expected.
|
|
2189
2196
|
*
|
|
2190
2197
|
* @platform darwin
|
|
2191
2198
|
*/
|
|
@@ -4390,7 +4397,11 @@ declare namespace Electron {
|
|
|
4390
4397
|
*/
|
|
4391
4398
|
removeListener(event: 'moved', listener: () => void): this;
|
|
4392
4399
|
/**
|
|
4393
|
-
* Emitted when the native new tab button
|
|
4400
|
+
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
4401
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
4402
|
+
*
|
|
4403
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
4404
|
+
* expected.
|
|
4394
4405
|
*
|
|
4395
4406
|
* @platform darwin
|
|
4396
4407
|
*/
|
|
@@ -4412,7 +4423,11 @@ declare namespace Electron {
|
|
|
4412
4423
|
*/
|
|
4413
4424
|
removeListener(event: 'new-window-for-tab', listener: () => void): this;
|
|
4414
4425
|
/**
|
|
4415
|
-
* Emitted when the native new tab button
|
|
4426
|
+
* Emitted when the user clicks the native macOS new tab button. The new tab button
|
|
4427
|
+
* is only visible if the current `BrowserWindow` has a `tabbingIdentifier`.
|
|
4428
|
+
*
|
|
4429
|
+
* You must create a window in this handler in order for macOS tabbing to work as
|
|
4430
|
+
* expected.
|
|
4416
4431
|
*
|
|
4417
4432
|
* @platform darwin
|
|
4418
4433
|
*/
|
|
@@ -21077,11 +21092,11 @@ declare namespace Electron {
|
|
|
21077
21092
|
*/
|
|
21078
21093
|
restoreState: boolean;
|
|
21079
21094
|
/**
|
|
21080
|
-
* can be
|
|
21095
|
+
* can be `not-registered`, `enabled`, `requires-approval`, or `not-found`.
|
|
21081
21096
|
*
|
|
21082
21097
|
* @platform darwin
|
|
21083
21098
|
*/
|
|
21084
|
-
status:
|
|
21099
|
+
status: ('not-registered' | 'enabled' | 'requires-approval' | 'not-found');
|
|
21085
21100
|
/**
|
|
21086
21101
|
* `true` if app is set to open at login and its run key is not deactivated. This
|
|
21087
21102
|
* differs from `openAtLogin` as it ignores the `args` option, this property will
|
|
@@ -21096,13 +21111,13 @@ declare namespace Electron {
|
|
|
21096
21111
|
|
|
21097
21112
|
interface LoginItemSettingsOptions {
|
|
21098
21113
|
/**
|
|
21099
|
-
* Can be
|
|
21100
|
-
*
|
|
21101
|
-
*
|
|
21114
|
+
* Can be `mainAppService`, `agentService`, `daemonService`, or `loginItemService`.
|
|
21115
|
+
* Defaults to `mainAppService`. Only available on macOS 13 and up. See
|
|
21116
|
+
* app.setLoginItemSettings for more information about each type.
|
|
21102
21117
|
*
|
|
21103
21118
|
* @platform darwin
|
|
21104
21119
|
*/
|
|
21105
|
-
type?:
|
|
21120
|
+
type?: ('mainAppService' | 'agentService' | 'daemonService' | 'loginItemService');
|
|
21106
21121
|
/**
|
|
21107
21122
|
* The name of the service. Required if `type` is non-default. Only available on
|
|
21108
21123
|
* macOS 13 and up.
|
|
@@ -23463,12 +23478,12 @@ declare namespace Electron {
|
|
|
23463
23478
|
*/
|
|
23464
23479
|
args: string[];
|
|
23465
23480
|
/**
|
|
23466
|
-
*
|
|
23481
|
+
* can be `user` or `machine`. Indicates whether the registry entry is under
|
|
23467
23482
|
* `HKEY_CURRENT USER` or `HKEY_LOCAL_MACHINE`.
|
|
23468
23483
|
*
|
|
23469
23484
|
* @platform win32
|
|
23470
23485
|
*/
|
|
23471
|
-
scope:
|
|
23486
|
+
scope: ('user' | 'machine');
|
|
23472
23487
|
/**
|
|
23473
23488
|
* `true` if the app registry key is startup approved and therefore shows as
|
|
23474
23489
|
* `enabled` in Task Manager and Windows settings.
|
package/dist/version.json
CHANGED