|
1 | | -// Type definitions for Electron 13.0.0-beta.20 |
| 1 | +// Type definitions for Electron 13.0.0-beta.21 |
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/electron-typescript-definitions |
@@ -7358,6 +7358,11 @@ Clears the host resolver cache. |
7358 | 7358 | * languages. This API is a no-op on macOS. |
7359 | 7359 | */ |
7360 | 7360 | getSpellCheckerLanguages(): string[]; |
| 7361 | + /** |
| 7362 | + * A `String | null` indicating the absolute file system path where data for this |
| 7363 | + * session is persisted on disk. For in memory sessions this returns `null`. |
| 7364 | + */ |
| 7365 | + getStoragePath(): void; |
7361 | 7366 | /** |
7362 | 7367 | * The user agent for this session. |
7363 | 7368 | */ |
@@ -7581,6 +7586,7 @@ Clears the host resolver cache. |
7581 | 7586 | readonly protocol: Protocol; |
7582 | 7587 | readonly serviceWorkers: ServiceWorkers; |
7583 | 7588 | spellCheckerEnabled: boolean; |
| 7589 | + readonly storagePath: (string) | (null); |
7584 | 7590 | readonly webRequest: WebRequest; |
7585 | 7591 | } |
7586 | 7592 |
|
@@ -10347,7 +10353,7 @@ Calling `event.preventDefault()` will prevent the navigation. |
10347 | 10353 | * reaches zero. If you want to decrease the hidden capturer count instead you |
10348 | 10354 | * should set `stayHidden` to true. |
10349 | 10355 | */ |
10350 | | - decrementCapturerCount(stayHidden?: boolean): void; |
| 10356 | + decrementCapturerCount(stayHidden?: boolean, stayAwake?: boolean): void; |
10351 | 10357 | /** |
10352 | 10358 | * Executes the editing command `delete` in web page. |
10353 | 10359 | */ |
@@ -10491,7 +10497,7 @@ Works like `executeJavaScript` but evaluates `scripts` in an isolated context. |
10491 | 10497 | * |
10492 | 10498 | This also affects the Page Visibility API. |
10493 | 10499 | */ |
10494 | | - incrementCapturerCount(size?: Size, stayHidden?: boolean): void; |
| 10500 | + incrementCapturerCount(size?: Size, stayHidden?: boolean, stayAwake?: boolean): void; |
10495 | 10501 | /** |
10496 | 10502 | * A promise that resolves with a key for the inserted CSS that can later be used |
10497 | 10503 | * to remove the CSS via `contents.removeInsertedCSS(key)`. |
|
0 commit comments