electron-types 42.0.1 → 43.0.0-alpha.2
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 +187 -14
- 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@
|
|
18
|
+
npm install -D electron-types@43.0.0-alpha.2
|
|
19
19
|
# or
|
|
20
|
-
yarn add -D electron-types@
|
|
20
|
+
yarn add -D electron-types@43.0.0-alpha.2
|
|
21
21
|
# or
|
|
22
|
-
pnpm add -D electron-types@
|
|
22
|
+
pnpm add -D electron-types@43.0.0-alpha.2
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 43.0.0-alpha.2
|
|
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
|
|
@@ -1133,8 +1133,6 @@ declare namespace Electron {
|
|
|
1133
1133
|
*
|
|
1134
1134
|
* This method returns a promise that contains the application name, icon and path
|
|
1135
1135
|
* of the default handler for the protocol (aka URI scheme) of a URL.
|
|
1136
|
-
*
|
|
1137
|
-
* @platform darwin,win32
|
|
1138
1136
|
*/
|
|
1139
1137
|
getApplicationInfoForProtocol(url: string): Promise<Electron.ApplicationInfoForProtocolReturnValue>;
|
|
1140
1138
|
/**
|
|
@@ -8034,6 +8032,11 @@ declare namespace Electron {
|
|
|
8034
8032
|
/**
|
|
8035
8033
|
* Hides the dock icon.
|
|
8036
8034
|
*
|
|
8035
|
+
* > [!IMPORTANT] **Known issue:** Calling `dock.hide()` within one second of a
|
|
8036
|
+
* previous call will have no effect. As a workaround, ensure at least one second
|
|
8037
|
+
* has elapsed between calls — for example, by deferring with a `setTimeout` of
|
|
8038
|
+
* 1100ms or more after a previous call.
|
|
8039
|
+
*
|
|
8037
8040
|
* @platform darwin
|
|
8038
8041
|
*/
|
|
8039
8042
|
hide(): void;
|
|
@@ -9536,6 +9539,15 @@ declare namespace Electron {
|
|
|
9536
9539
|
* An `Accelerator | null` indicating the item's accelerator, if set.
|
|
9537
9540
|
*/
|
|
9538
9541
|
accelerator: (Accelerator) | (null);
|
|
9542
|
+
/**
|
|
9543
|
+
* A `string` indicating the item's accessibility label (used by assistive
|
|
9544
|
+
* technology), if set.
|
|
9545
|
+
*
|
|
9546
|
+
* This property can be dynamically changed.
|
|
9547
|
+
*
|
|
9548
|
+
* @platform darwin
|
|
9549
|
+
*/
|
|
9550
|
+
accessibilityLabel: string;
|
|
9539
9551
|
/**
|
|
9540
9552
|
* A `boolean` indicating whether the item is checked.
|
|
9541
9553
|
*
|
|
@@ -9825,13 +9837,20 @@ declare namespace Electron {
|
|
|
9825
9837
|
*
|
|
9826
9838
|
* @platform darwin
|
|
9827
9839
|
*/
|
|
9828
|
-
static createFromNamedImage(imageName: string,
|
|
9840
|
+
static createFromNamedImage(imageName: string, options?: (CreateFromNamedImageOptions) | (number[])): NativeImage;
|
|
9829
9841
|
/**
|
|
9830
9842
|
* Creates a new `NativeImage` instance from an image file (e.g., PNG or JPEG)
|
|
9831
9843
|
* located at `path`. This method returns an empty image if the `path` does not
|
|
9832
9844
|
* exist, cannot be read, or is not a valid image.
|
|
9833
9845
|
*/
|
|
9834
9846
|
static createFromPath(path: string): NativeImage;
|
|
9847
|
+
/**
|
|
9848
|
+
* Creates a new `NativeImage` instance from an SF Symbol for use in a native Menu.
|
|
9849
|
+
* See SF Symbols for a list of possible values.
|
|
9850
|
+
*
|
|
9851
|
+
* @platform darwin
|
|
9852
|
+
*/
|
|
9853
|
+
static createMenuSymbol(imageName: string): NativeImage;
|
|
9835
9854
|
/**
|
|
9836
9855
|
* fulfilled with the file's thumbnail preview image, which is a NativeImage.
|
|
9837
9856
|
*
|
|
@@ -11799,7 +11818,12 @@ declare namespace Electron {
|
|
|
11799
11818
|
*/
|
|
11800
11819
|
getSelectedStorageBackend(): ('basic_text' | 'gnome_libsecret' | 'kwallet' | 'kwallet5' | 'kwallet6' | 'unknown');
|
|
11801
11820
|
/**
|
|
11802
|
-
*
|
|
11821
|
+
* Resolves with whether encryption is available for asynchronous safeStorage
|
|
11822
|
+
* operations.
|
|
11823
|
+
*
|
|
11824
|
+
* The asynchronous encryptor is initialized lazily the first time this method,
|
|
11825
|
+
* `encryptStringAsync`, or `decryptStringAsync` is called after the app is ready.
|
|
11826
|
+
* The returned promise resolves once initialization completes.
|
|
11803
11827
|
*/
|
|
11804
11828
|
isAsyncEncryptionAvailable(): Promise<boolean>;
|
|
11805
11829
|
/**
|
|
@@ -15626,6 +15650,31 @@ declare namespace Electron {
|
|
|
15626
15650
|
* GetExitCodeProcess on Windows.
|
|
15627
15651
|
*/
|
|
15628
15652
|
code: number) => void): this;
|
|
15653
|
+
/**
|
|
15654
|
+
* Emitted when the utility process encounters an HTTP 401 or 407 authentication
|
|
15655
|
+
* challenge, if the process was created with both
|
|
15656
|
+
* `respondToAuthRequestsFromMainProcess: true` and a `session` option. The
|
|
15657
|
+
* `callback` should be called with credentials to respond to the challenge.
|
|
15658
|
+
* Calling `callback` without arguments will cancel the request.
|
|
15659
|
+
*
|
|
15660
|
+
* This behaves the same as the `login` event on `app` but is scoped to the
|
|
15661
|
+
* individual utility process instance.
|
|
15662
|
+
*/
|
|
15663
|
+
on(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15664
|
+
authInfo: AuthInfo,
|
|
15665
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
15666
|
+
off(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15667
|
+
authInfo: AuthInfo,
|
|
15668
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
15669
|
+
once(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15670
|
+
authInfo: AuthInfo,
|
|
15671
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
15672
|
+
addListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15673
|
+
authInfo: AuthInfo,
|
|
15674
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
15675
|
+
removeListener(event: 'login', listener: (authenticationResponseDetails: AuthenticationResponseDetails,
|
|
15676
|
+
authInfo: AuthInfo,
|
|
15677
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
15629
15678
|
/**
|
|
15630
15679
|
* Emitted when the child process sends a message using
|
|
15631
15680
|
* `process.parentPort.postMessage()`.
|
|
@@ -15718,6 +15767,11 @@ declare namespace Electron {
|
|
|
15718
15767
|
* no-op.
|
|
15719
15768
|
*/
|
|
15720
15769
|
removeChildView(view: View): void;
|
|
15770
|
+
/**
|
|
15771
|
+
* > [!NOTE] You must set a background color with an alpha channel (e.g.
|
|
15772
|
+
* `#80ffffff`) in order for the blur effect to be visible.
|
|
15773
|
+
*/
|
|
15774
|
+
setBackgroundBlur(blurRadius: number): void;
|
|
15721
15775
|
/**
|
|
15722
15776
|
* Examples of valid `color` values:
|
|
15723
15777
|
*
|
|
@@ -17742,6 +17796,31 @@ declare namespace Electron {
|
|
|
17742
17796
|
* @deprecated
|
|
17743
17797
|
*/
|
|
17744
17798
|
clearHistory(): void;
|
|
17799
|
+
/**
|
|
17800
|
+
* A cloned WebContents instance. This method creates a copy of the WebContents
|
|
17801
|
+
* with the following attributes:
|
|
17802
|
+
*
|
|
17803
|
+
* * **WebPreferences** - All preferences from the original WebContents are copied
|
|
17804
|
+
* * **SiteInstance** - Uses the same SiteInstance as the original. This means the
|
|
17805
|
+
* cloned WebContents will reuse the same render process as the original when
|
|
17806
|
+
* loading same-origin pages, and only spawn a new render process for cross-origin
|
|
17807
|
+
* navigations. This process allocation behavior is consistent with window.open and
|
|
17808
|
+
* tab duplication in Chromium. For more details, see Chromium's Site Isolation
|
|
17809
|
+
* design document.
|
|
17810
|
+
* * **Opener relationship** - Inherits the opener (window.opener) relationship
|
|
17811
|
+
* * **Navigation state** - Copies the navigation history and controller state
|
|
17812
|
+
*
|
|
17813
|
+
* The cloned WebContents is an independent instance with its own lifecycle that
|
|
17814
|
+
* can be destroyed separately and will not contain any open web pages.
|
|
17815
|
+
*
|
|
17816
|
+
* This API is useful for use cases where you want to create a new WebContents that
|
|
17817
|
+
* shares the same render process with the original for same-origin content, while
|
|
17818
|
+
* maintaining full lifecycle independence. Additionally, reusing the existing
|
|
17819
|
+
* render process can help optimize memory usage and page load speed to a certain
|
|
17820
|
+
* extent, as it eliminates the overhead of spawning and initializing a new render
|
|
17821
|
+
* process from scratch.
|
|
17822
|
+
*/
|
|
17823
|
+
clone(): WebContents;
|
|
17745
17824
|
/**
|
|
17746
17825
|
* Closes the page, as if the web content had called `window.close()`.
|
|
17747
17826
|
*
|
|
@@ -17762,6 +17841,11 @@ declare namespace Electron {
|
|
|
17762
17841
|
* Copy the image at the given position to the clipboard.
|
|
17763
17842
|
*/
|
|
17764
17843
|
copyImageAt(x: number, y: number): void;
|
|
17844
|
+
/**
|
|
17845
|
+
* When executed on a video media element, copies the frame at (x, y) to the
|
|
17846
|
+
* clipboard.
|
|
17847
|
+
*/
|
|
17848
|
+
copyVideoFrameAt(x: number, y: number): void;
|
|
17765
17849
|
/**
|
|
17766
17850
|
* Executes the editing command `cut` in web page.
|
|
17767
17851
|
*/
|
|
@@ -18159,6 +18243,11 @@ declare namespace Electron {
|
|
|
18159
18243
|
* resolves if the page is saved.
|
|
18160
18244
|
*/
|
|
18161
18245
|
savePage(fullPath: string, saveType: 'HTMLOnly' | 'HTMLComplete' | 'MHTML'): Promise<void>;
|
|
18246
|
+
/**
|
|
18247
|
+
* When executed on a video media element, shows a save dialog and saves the frame
|
|
18248
|
+
* at (x, y) to disk.
|
|
18249
|
+
*/
|
|
18250
|
+
saveVideoFrameAs(x: number, y: number): void;
|
|
18162
18251
|
/**
|
|
18163
18252
|
* Scrolls to the bottom of the current `webContents`.
|
|
18164
18253
|
*/
|
|
@@ -18753,6 +18842,11 @@ declare namespace Electron {
|
|
|
18753
18842
|
* @experimental
|
|
18754
18843
|
*/
|
|
18755
18844
|
collectJavaScriptCallStack(): (Promise<string>) | (Promise<void>);
|
|
18845
|
+
/**
|
|
18846
|
+
* When executed on a video media element, copies the frame at (x, y) to the
|
|
18847
|
+
* clipboard.
|
|
18848
|
+
*/
|
|
18849
|
+
copyVideoFrameAt(x: number, y: number): void;
|
|
18756
18850
|
/**
|
|
18757
18851
|
* A promise that resolves with the result of the executed code or is rejected if
|
|
18758
18852
|
* execution throws or results in a rejected promise.
|
|
@@ -18784,6 +18878,11 @@ declare namespace Electron {
|
|
|
18784
18878
|
* frame has no history.
|
|
18785
18879
|
*/
|
|
18786
18880
|
reload(): boolean;
|
|
18881
|
+
/**
|
|
18882
|
+
* When executed on a video media element, shows a save dialog and saves the frame
|
|
18883
|
+
* at (x, y) to disk.
|
|
18884
|
+
*/
|
|
18885
|
+
saveVideoFrameAs(x: number, y: number): void;
|
|
18787
18886
|
/**
|
|
18788
18887
|
* Send an asynchronous message to the renderer process via `channel`, along with
|
|
18789
18888
|
* arguments. Arguments will be serialized with the Structured Clone Algorithm,
|
|
@@ -20196,6 +20295,12 @@ declare namespace Electron {
|
|
|
20196
20295
|
* Defaults to 1.0.
|
|
20197
20296
|
*/
|
|
20198
20297
|
scaleFactor?: number;
|
|
20298
|
+
/**
|
|
20299
|
+
* The target color space for the output pixel data. Defaults to sRGB. Pass the
|
|
20300
|
+
* image's original color space to preserve the previous behavior, or another color
|
|
20301
|
+
* space to get pixel values in that space.
|
|
20302
|
+
*/
|
|
20303
|
+
colorSpace?: ColorSpace;
|
|
20199
20304
|
}
|
|
20200
20305
|
|
|
20201
20306
|
interface BlinkMemoryInfo {
|
|
@@ -20318,10 +20423,10 @@ declare namespace Electron {
|
|
|
20318
20423
|
origin?: string;
|
|
20319
20424
|
/**
|
|
20320
20425
|
* The types of storages to clear, can be `cookies`, `filesystem`, `indexdb`,
|
|
20321
|
-
* `localstorage`, `shadercache`, `
|
|
20322
|
-
*
|
|
20426
|
+
* `localstorage`, `shadercache`, `serviceworkers`, `cachestorage`. If not
|
|
20427
|
+
* specified, clear all storage types.
|
|
20323
20428
|
*/
|
|
20324
|
-
storages?: Array<'cookies' | 'filesystem' | 'indexdb' | 'localstorage' | 'shadercache' | '
|
|
20429
|
+
storages?: Array<'cookies' | 'filesystem' | 'indexdb' | 'localstorage' | 'shadercache' | 'serviceworkers' | 'cachestorage'>;
|
|
20325
20430
|
}
|
|
20326
20431
|
|
|
20327
20432
|
interface ClientCertRequestParams {
|
|
@@ -20890,6 +20995,22 @@ declare namespace Electron {
|
|
|
20890
20995
|
scaleFactor?: number;
|
|
20891
20996
|
}
|
|
20892
20997
|
|
|
20998
|
+
interface CreateFromNamedImageOptions {
|
|
20999
|
+
hslShift?: number[];
|
|
21000
|
+
/**
|
|
21001
|
+
* Defaults to `30.0`.
|
|
21002
|
+
*/
|
|
21003
|
+
pointSize?: number;
|
|
21004
|
+
/**
|
|
21005
|
+
* Defaults to `regular`.
|
|
21006
|
+
*/
|
|
21007
|
+
weight?: ('ultralight') | ('thin') | ('light') | ('regular') | ('medium') | ('semibold') | ('bold') | ('heavy') | ('black');
|
|
21008
|
+
/**
|
|
21009
|
+
* Defaults to `medium`.
|
|
21010
|
+
*/
|
|
21011
|
+
scale?: ('small') | ('medium') | ('large');
|
|
21012
|
+
}
|
|
21013
|
+
|
|
20893
21014
|
interface CreateInterruptedDownloadOptions {
|
|
20894
21015
|
/**
|
|
20895
21016
|
* Absolute path of the download.
|
|
@@ -21308,6 +21429,22 @@ declare namespace Electron {
|
|
|
21308
21429
|
* Current working directory of the child process.
|
|
21309
21430
|
*/
|
|
21310
21431
|
cwd?: string;
|
|
21432
|
+
/**
|
|
21433
|
+
* Sets the session used by the process for network requests. By default, network
|
|
21434
|
+
* requests from the utility process will use the system network context which does
|
|
21435
|
+
* not have HTTP cache support. Setting a session enables HTTP caching and other
|
|
21436
|
+
* session-specific network features. See session for more information.
|
|
21437
|
+
*/
|
|
21438
|
+
session?: Session;
|
|
21439
|
+
/**
|
|
21440
|
+
* Sets the session used by the process according to the session's partition
|
|
21441
|
+
* string. If `partition` starts with `persist:`, the process will use a persistent
|
|
21442
|
+
* session available to all pages in the app with the same `partition`. If there is
|
|
21443
|
+
* no `persist:` prefix, the process will use an in-memory session. By assigning
|
|
21444
|
+
* the same `partition`, multiple processes can share the same session. If the
|
|
21445
|
+
* `session` option is set, this option is ignored.
|
|
21446
|
+
*/
|
|
21447
|
+
partition?: string;
|
|
21311
21448
|
/**
|
|
21312
21449
|
* Allows configuring the mode for `stdout` and `stderr` of the child process.
|
|
21313
21450
|
* Default is `inherit`. String value can be one of `pipe`, `ignore`, `inherit`,
|
|
@@ -21349,9 +21486,11 @@ declare namespace Electron {
|
|
|
21349
21486
|
disclaim?: boolean;
|
|
21350
21487
|
/**
|
|
21351
21488
|
* With this flag, all HTTP 401 and 407 network requests created via the net module
|
|
21352
|
-
* will allow responding to them via the `
|
|
21353
|
-
*
|
|
21354
|
-
*
|
|
21489
|
+
* will allow responding to them via the `login` event on the `UtilityProcess`
|
|
21490
|
+
* instance when a `session` is provided, or via the `app#login` event in the main
|
|
21491
|
+
* process when using the default system network context. Without this flag, auth
|
|
21492
|
+
* challenges are handled by the default `login` event on the `ClientRequest`
|
|
21493
|
+
* object. Default is `false`.
|
|
21355
21494
|
*/
|
|
21356
21495
|
respondToAuthRequestsFromMainProcess?: boolean;
|
|
21357
21496
|
}
|
|
@@ -21777,6 +21916,7 @@ declare namespace Electron {
|
|
|
21777
21916
|
role?: ('undo' | 'redo' | 'cut' | 'copy' | 'paste' | 'pasteAndMatchStyle' | 'delete' | 'selectAll' | 'reload' | 'forceReload' | 'toggleDevTools' | 'resetZoom' | 'zoomIn' | 'zoomOut' | 'toggleSpellChecker' | 'togglefullscreen' | 'window' | 'minimize' | 'close' | 'help' | 'about' | 'services' | 'hide' | 'hideOthers' | 'unhide' | 'quit' | 'showSubstitutions' | 'toggleSmartQuotes' | 'toggleSmartDashes' | 'toggleTextReplacement' | 'startSpeaking' | 'stopSpeaking' | 'zoom' | 'front' | 'appMenu' | 'fileMenu' | 'editMenu' | 'viewMenu' | 'shareMenu' | 'recentDocuments' | 'toggleTabBar' | 'selectNextTab' | 'selectPreviousTab' | 'showAllTabs' | 'mergeAllWindows' | 'clearRecentDocuments' | 'moveTabToNewWindow' | 'windowMenu');
|
|
21778
21917
|
type?: ('normal' | 'separator' | 'submenu' | 'checkbox' | 'radio' | 'header' | 'palette');
|
|
21779
21918
|
label?: string;
|
|
21919
|
+
accessibilityLabel?: string;
|
|
21780
21920
|
/**
|
|
21781
21921
|
* Available in macOS >= 14.4
|
|
21782
21922
|
*
|
|
@@ -22229,7 +22369,7 @@ declare namespace Electron {
|
|
|
22229
22369
|
*
|
|
22230
22370
|
* @experimental
|
|
22231
22371
|
*/
|
|
22232
|
-
sharedTexturePixelFormat?: ('argb' | 'rgbaf16');
|
|
22372
|
+
sharedTexturePixelFormat?: ('argb' | 'rgbaf16' | 'nv12');
|
|
22233
22373
|
/**
|
|
22234
22374
|
* The device scale factor of the offscreen rendering output. If not set, will use
|
|
22235
22375
|
* `1` as default.
|
|
@@ -22452,6 +22592,11 @@ declare namespace Electron {
|
|
|
22452
22592
|
|
|
22453
22593
|
interface OpenDialogOptions {
|
|
22454
22594
|
title?: string;
|
|
22595
|
+
/**
|
|
22596
|
+
* Absolute directory path, absolute file path, or file name to use by default. If
|
|
22597
|
+
* not provided, the dialog will default to the user's Downloads folder, or their
|
|
22598
|
+
* home directory if Downloads doesn't exist.
|
|
22599
|
+
*/
|
|
22455
22600
|
defaultPath?: string;
|
|
22456
22601
|
/**
|
|
22457
22602
|
* Custom label for the confirmation button, when left empty the default label will
|
|
@@ -22500,6 +22645,11 @@ declare namespace Electron {
|
|
|
22500
22645
|
|
|
22501
22646
|
interface OpenDialogSyncOptions {
|
|
22502
22647
|
title?: string;
|
|
22648
|
+
/**
|
|
22649
|
+
* Absolute directory path, absolute file path, or file name to use by default. If
|
|
22650
|
+
* not provided, the dialog will default to the user's Downloads folder, or their
|
|
22651
|
+
* home directory if Downloads doesn't exist.
|
|
22652
|
+
*/
|
|
22503
22653
|
defaultPath?: string;
|
|
22504
22654
|
/**
|
|
22505
22655
|
* Custom label for the confirmation button, when left empty the default label will
|
|
@@ -23017,7 +23167,9 @@ declare namespace Electron {
|
|
|
23017
23167
|
*/
|
|
23018
23168
|
title?: string;
|
|
23019
23169
|
/**
|
|
23020
|
-
* Absolute directory path, absolute file path, or file name to use by default.
|
|
23170
|
+
* Absolute directory path, absolute file path, or file name to use by default. If
|
|
23171
|
+
* not provided, the dialog will default to the user's Downloads folder, or their
|
|
23172
|
+
* home directory if Downloads doesn't exist.
|
|
23021
23173
|
*/
|
|
23022
23174
|
defaultPath?: string;
|
|
23023
23175
|
/**
|
|
@@ -23080,7 +23232,9 @@ declare namespace Electron {
|
|
|
23080
23232
|
*/
|
|
23081
23233
|
title?: string;
|
|
23082
23234
|
/**
|
|
23083
|
-
* Absolute directory path, absolute file path, or file name to use by default.
|
|
23235
|
+
* Absolute directory path, absolute file path, or file name to use by default. If
|
|
23236
|
+
* not provided, the dialog will default to the user's Downloads folder, or their
|
|
23237
|
+
* home directory if Downloads doesn't exist.
|
|
23084
23238
|
*/
|
|
23085
23239
|
defaultPath?: string;
|
|
23086
23240
|
/**
|
|
@@ -23453,6 +23607,12 @@ declare namespace Electron {
|
|
|
23453
23607
|
* Defaults to 1.0.
|
|
23454
23608
|
*/
|
|
23455
23609
|
scaleFactor?: number;
|
|
23610
|
+
/**
|
|
23611
|
+
* The target color space for the output pixel data. Defaults to sRGB. Pass the
|
|
23612
|
+
* image's original color space to preserve the previous behavior, or another color
|
|
23613
|
+
* space to get pixel values in that space.
|
|
23614
|
+
*/
|
|
23615
|
+
colorSpace?: ColorSpace;
|
|
23456
23616
|
}
|
|
23457
23617
|
|
|
23458
23618
|
interface ToDataURLOptions {
|
|
@@ -24498,6 +24658,14 @@ declare namespace Electron {
|
|
|
24498
24658
|
* `<TEAM_ID>.<BUNDLE_ID>.webauthn`.
|
|
24499
24659
|
*/
|
|
24500
24660
|
keychainAccessGroup: string;
|
|
24661
|
+
/**
|
|
24662
|
+
* Customizes the reason text shown in the macOS Touch ID prompt. macOS renders the
|
|
24663
|
+
* prompt as `"<App Name>" is trying to <promptReason>`, so the value should be a
|
|
24664
|
+
* lowercase sentence fragment. An optional `$1` placeholder is replaced with the
|
|
24665
|
+
* relying party ID (e.g. `example.com`) of the request being authenticated.
|
|
24666
|
+
* Defaults to `verify your identity on $1`.
|
|
24667
|
+
*/
|
|
24668
|
+
promptReason?: string;
|
|
24501
24669
|
}
|
|
24502
24670
|
|
|
24503
24671
|
interface Video {
|
|
@@ -24618,6 +24786,7 @@ declare namespace Electron {
|
|
|
24618
24786
|
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
24619
24787
|
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
24620
24788
|
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
24789
|
+
type CreateFromNamedImageOptions = Electron.CreateFromNamedImageOptions;
|
|
24621
24790
|
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
24622
24791
|
type Data = Electron.Data;
|
|
24623
24792
|
type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
|
|
@@ -25024,6 +25193,7 @@ declare namespace Electron {
|
|
|
25024
25193
|
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
25025
25194
|
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
25026
25195
|
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
25196
|
+
type CreateFromNamedImageOptions = Electron.CreateFromNamedImageOptions;
|
|
25027
25197
|
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
25028
25198
|
type Data = Electron.Data;
|
|
25029
25199
|
type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
|
|
@@ -25358,6 +25528,7 @@ declare namespace Electron {
|
|
|
25358
25528
|
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
25359
25529
|
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
25360
25530
|
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
25531
|
+
type CreateFromNamedImageOptions = Electron.CreateFromNamedImageOptions;
|
|
25361
25532
|
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
25362
25533
|
type Data = Electron.Data;
|
|
25363
25534
|
type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
|
|
@@ -25691,6 +25862,7 @@ declare namespace Electron {
|
|
|
25691
25862
|
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
25692
25863
|
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
25693
25864
|
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
25865
|
+
type CreateFromNamedImageOptions = Electron.CreateFromNamedImageOptions;
|
|
25694
25866
|
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
25695
25867
|
type Data = Electron.Data;
|
|
25696
25868
|
type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
|
|
@@ -26118,6 +26290,7 @@ declare namespace Electron {
|
|
|
26118
26290
|
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
26119
26291
|
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
26120
26292
|
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
26293
|
+
type CreateFromNamedImageOptions = Electron.CreateFromNamedImageOptions;
|
|
26121
26294
|
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
26122
26295
|
type Data = Electron.Data;
|
|
26123
26296
|
type DecryptStringAsyncReturnValue = Electron.DecryptStringAsyncReturnValue;
|
package/dist/version.json
CHANGED