electron-types 43.0.0-alpha.6 → 43.0.0-beta.1
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 +14 -2
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
15
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)):
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install -D electron-types@43.0.0-
|
|
18
|
+
npm install -D electron-types@43.0.0-beta.1
|
|
19
19
|
# or
|
|
20
|
-
yarn add -D electron-types@43.0.0-
|
|
20
|
+
yarn add -D electron-types@43.0.0-beta.1
|
|
21
21
|
# or
|
|
22
|
-
pnpm add -D electron-types@43.0.0-
|
|
22
|
+
pnpm add -D electron-types@43.0.0-beta.1
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.0.0-
|
|
1
|
+
// Type definitions for Electron 43.0.0-beta.1
|
|
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
|
|
@@ -2229,6 +2229,10 @@ declare namespace Electron {
|
|
|
2229
2229
|
removeListener(event: 'maximize', listener: () => void): this;
|
|
2230
2230
|
/**
|
|
2231
2231
|
* Emitted when the window is minimized.
|
|
2232
|
+
*
|
|
2233
|
+
* > [!NOTE] On Wayland, “minimized” is not currently a supported state. The
|
|
2234
|
+
* minimize event will only fire when triggered by client-side decoration (e.g.
|
|
2235
|
+
* clicking the minimize button on a frameless window’s Window Control Overlay)
|
|
2232
2236
|
*/
|
|
2233
2237
|
on(event: 'minimize', listener: () => void): this;
|
|
2234
2238
|
off(event: 'minimize', listener: () => void): this;
|
|
@@ -4398,6 +4402,10 @@ declare namespace Electron {
|
|
|
4398
4402
|
removeListener(event: 'maximize', listener: () => void): this;
|
|
4399
4403
|
/**
|
|
4400
4404
|
* Emitted when the window is minimized.
|
|
4405
|
+
*
|
|
4406
|
+
* > [!NOTE] On Wayland, “minimized” is not currently a supported state. The
|
|
4407
|
+
* minimize event will only fire when triggered by client-side decoration (e.g.
|
|
4408
|
+
* clicking the minimize button on a frameless window’s Window Control Overlay)
|
|
4401
4409
|
*/
|
|
4402
4410
|
on(event: 'minimize', listener: () => void): this;
|
|
4403
4411
|
off(event: 'minimize', listener: () => void): this;
|
|
@@ -4406,6 +4414,10 @@ declare namespace Electron {
|
|
|
4406
4414
|
removeListener(event: 'minimize', listener: () => void): this;
|
|
4407
4415
|
/**
|
|
4408
4416
|
* Emitted when the window is minimized.
|
|
4417
|
+
*
|
|
4418
|
+
* > [!NOTE] On Wayland, “minimized” is not currently a supported state. The
|
|
4419
|
+
* minimize event will only fire when triggered by client-side decoration (e.g.
|
|
4420
|
+
* clicking the minimize button on a frameless window’s Window Control Overlay)
|
|
4409
4421
|
*/
|
|
4410
4422
|
on(event: 'minimize', listener: () => void): this;
|
|
4411
4423
|
off(event: 'minimize', listener: () => void): this;
|
|
@@ -18171,7 +18183,7 @@ declare namespace Electron {
|
|
|
18171
18183
|
* When `contents` is a `<webview>` tag, the `mode` would be `detach` by default,
|
|
18172
18184
|
* explicitly passing an empty `mode` can force using last used dock state.
|
|
18173
18185
|
*
|
|
18174
|
-
* On Windows, if
|
|
18186
|
+
* On Windows, if Window Control Overlay is enabled, DevTools will be opened with
|
|
18175
18187
|
* `mode: 'detach'`.
|
|
18176
18188
|
*/
|
|
18177
18189
|
openDevTools(options?: OpenDevToolsOptions): void;
|
package/dist/version.json
CHANGED