@types/chrome 0.0.222 → 0.0.224
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +22 -19
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Tue, 14 Mar 2023 23:02:40 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
* Global values: `chrome`
|
14
14
|
|
chrome/index.d.ts
CHANGED
@@ -1720,7 +1720,7 @@ declare namespace chrome.contextMenus {
|
|
1720
1720
|
/**
|
1721
1721
|
* Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation callback fires (the details will be in chrome.runtime.lastError).
|
1722
1722
|
* @param callback Called when the item has been created in the browser. If there were any problems creating the item, details will be available in chrome.runtime.lastError.
|
1723
|
-
* @
|
1723
|
+
* @return The ID of the newly created item.
|
1724
1724
|
*/
|
1725
1725
|
export function create(createProperties: CreateProperties, callback?: () => void): number | string;
|
1726
1726
|
/**
|
@@ -2117,7 +2117,7 @@ declare namespace chrome.declarativeContent {
|
|
2117
2117
|
/**
|
2118
2118
|
* Optional.
|
2119
2119
|
* Since Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.
|
2120
|
-
* Matches if the bookmarked state of the page is equal to the specified value.
|
2120
|
+
* Matches if the bookmarked state of the page is equal to the specified value. Requires the bookmarks permission.
|
2121
2121
|
*/
|
2122
2122
|
isBookmarked?: boolean | undefined;
|
2123
2123
|
}
|
@@ -3205,7 +3205,7 @@ declare namespace chrome.enterprise.deviceAttributes {
|
|
3205
3205
|
* @since Chrome 82.
|
3206
3206
|
* @description
|
3207
3207
|
* Fetches the device's hostname as set by DeviceHostnameTemplate policy.
|
3208
|
-
* If the current user is not affiliated or no hostname has been set by the
|
3208
|
+
* If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
|
3209
3209
|
* @param callback Called with the hostname of the device.
|
3210
3210
|
*/
|
3211
3211
|
export function getDeviceHostname(callback: (hostname: string) => void): void;
|
@@ -3655,7 +3655,7 @@ declare namespace chrome.fileSystemProvider {
|
|
3655
3655
|
}
|
3656
3656
|
|
3657
3657
|
export interface MountOptions {
|
3658
|
-
/** The string
|
3658
|
+
/** The string identifier of the file system. Must be unique per each extension. */
|
3659
3659
|
fileSystemId: string;
|
3660
3660
|
/** A human-readable name for the file system. */
|
3661
3661
|
displayName: string;
|
@@ -5176,7 +5176,7 @@ declare namespace chrome.input.ime {
|
|
5176
5176
|
export var onKeyEvent: KeyEventEvent;
|
5177
5177
|
/** This event is sent when an IME is deactivated. It signals that the IME will no longer be receiving onKeyPress events. */
|
5178
5178
|
export var onDeactivated: DeactivatedEvent;
|
5179
|
-
/** This event is sent when the properties of the current InputContext change, such as the
|
5179
|
+
/** This event is sent when the properties of the current InputContext change, such as the type. It is sent to all extensions that are listening to this event, and enabled by the user. */
|
5180
5180
|
export var onInputContextUpdate: InputContextUpdateEvent;
|
5181
5181
|
/** This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events. */
|
5182
5182
|
export var onActivate: ActivateEvent;
|
@@ -6396,7 +6396,7 @@ declare namespace chrome.proxy {
|
|
6396
6396
|
proxyForFtp?: ProxyServer | undefined;
|
6397
6397
|
/** Optional. The proxy server to be used for HTTP requests. */
|
6398
6398
|
proxyForHttp?: ProxyServer | undefined;
|
6399
|
-
/** Optional. The proxy server to be used for
|
6399
|
+
/** Optional. The proxy server to be used for everything else or if any of the specific proxyFor... is not specified. */
|
6400
6400
|
fallbackProxy?: ProxyServer | undefined;
|
6401
6401
|
/** Optional. The proxy server to be used for all per-URL requests (that is http, https, and ftp). */
|
6402
6402
|
singleProxy?: ProxyServer | undefined;
|
@@ -6576,7 +6576,7 @@ declare namespace chrome.serial {
|
|
6576
6576
|
* @description Update the option settings on an open serial port connection.
|
6577
6577
|
* @param connectionId The id of the opened connection.
|
6578
6578
|
* @param options Port configuration options.
|
6579
|
-
* @param callback Called when the
|
6579
|
+
* @param callback Called when the configuration has completed.
|
6580
6580
|
*/
|
6581
6581
|
export function update(connectionId: number, options: ConnectionOptions, callback: (result: boolean) => void): void;
|
6582
6582
|
|
@@ -6912,6 +6912,8 @@ declare namespace chrome.runtime {
|
|
6912
6912
|
| 'desktopCapture'
|
6913
6913
|
| 'documentScan'
|
6914
6914
|
| 'downloads'
|
6915
|
+
| 'downloads.shelf'
|
6916
|
+
| 'downloads.ui'
|
6915
6917
|
| 'enterprise.deviceAttributes'
|
6916
6918
|
| 'enterprise.hardwarePlatform'
|
6917
6919
|
| 'enterprise.networkingAttributes'
|
@@ -6931,6 +6933,7 @@ declare namespace chrome.runtime {
|
|
6931
6933
|
| 'management'
|
6932
6934
|
| 'nativeMessaging'
|
6933
6935
|
| 'notifications'
|
6936
|
+
| 'offscreen'
|
6934
6937
|
| 'pageCapture'
|
6935
6938
|
| 'platformKeys'
|
6936
6939
|
| 'power'
|
@@ -7212,7 +7215,7 @@ declare namespace chrome.runtime {
|
|
7212
7215
|
export function getBackgroundPage(callback: (backgroundPage?: Window) => void): void;
|
7213
7216
|
/**
|
7214
7217
|
* Returns details about the app or extension from the manifest. The object returned is a serialization of the full manifest file.
|
7215
|
-
* @
|
7218
|
+
* @return The manifest details.
|
7216
7219
|
*/
|
7217
7220
|
export function getManifest(): Manifest;
|
7218
7221
|
/**
|
@@ -8284,7 +8287,7 @@ declare namespace chrome.system.display {
|
|
8284
8287
|
* This is has no effect if not provided.
|
8285
8288
|
* @see(See `enableUnifiedDesktop` for details).
|
8286
8289
|
* @since Chrome 59
|
8287
|
-
|
8290
|
+
*/
|
8288
8291
|
isUnified?: boolean | undefined;
|
8289
8292
|
|
8290
8293
|
/**
|
@@ -8441,7 +8444,7 @@ declare namespace chrome.system.display {
|
|
8441
8444
|
/**
|
8442
8445
|
* The ratio between the display's current and default zoom.
|
8443
8446
|
* For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom.
|
8444
|
-
|
8447
|
+
*/
|
8445
8448
|
displayZoomFactor: number;
|
8446
8449
|
}
|
8447
8450
|
|
@@ -9760,7 +9763,7 @@ declare namespace chrome.tabs {
|
|
9760
9763
|
* Gets the current zoom settings of a specified tab.
|
9761
9764
|
* @since Chrome 42.
|
9762
9765
|
* @param callback Called with the tab's current zoom settings.
|
9763
|
-
*
|
9766
|
+
* Parameter zoomSettings: The tab's current zoom settings.
|
9764
9767
|
*/
|
9765
9768
|
export function getZoomSettings(callback: (zoomSettings: ZoomSettings) => void): void;
|
9766
9769
|
/**
|
@@ -9774,7 +9777,7 @@ declare namespace chrome.tabs {
|
|
9774
9777
|
* @since Chrome 42.
|
9775
9778
|
* @param tabId Optional. The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
|
9776
9779
|
* @param callback Called with the tab's current zoom settings.
|
9777
|
-
*
|
9780
|
+
* Parameter zoomSettings: The tab's current zoom settings.
|
9778
9781
|
*/
|
9779
9782
|
export function getZoomSettings(tabId: number, callback: (zoomSettings: ZoomSettings) => void): void;
|
9780
9783
|
/**
|
@@ -9800,26 +9803,26 @@ declare namespace chrome.tabs {
|
|
9800
9803
|
export function discard(callback: (tab: Tab) => void): void;
|
9801
9804
|
export function discard(tabId: number, callback: (tab: Tab) => void): void;
|
9802
9805
|
/**
|
9803
|
-
* Go
|
9806
|
+
* Go forward to the next page, if one is available.
|
9804
9807
|
* @since Chrome 72.
|
9805
9808
|
* @return The `goForward` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
|
9806
9809
|
*/
|
9807
9810
|
export function goForward(): Promise<void>;
|
9808
9811
|
/**
|
9809
|
-
* Go
|
9812
|
+
* Go forward to the next page, if one is available.
|
9810
9813
|
* @since Chrome 72.
|
9811
9814
|
* @param callback Optional. Called after the operation is completed.
|
9812
9815
|
*/
|
9813
9816
|
export function goForward(callback: () => void): void;
|
9814
9817
|
/**
|
9815
|
-
* Go
|
9818
|
+
* Go forward to the next page, if one is available.
|
9816
9819
|
* @since Chrome 72.
|
9817
9820
|
* @param tabId Optional. The ID of the tab to navigate forward; defaults to the selected tab of the current window.
|
9818
9821
|
* @return The `goForward` method provides its result via callback or returned as a `Promise` (MV3 only). It has no parameters.
|
9819
9822
|
*/
|
9820
9823
|
export function goForward(tabId: number): Promise<void>;
|
9821
9824
|
/**
|
9822
|
-
* Go
|
9825
|
+
* Go forward to the next page, if one is available.
|
9823
9826
|
* @since Chrome 72.
|
9824
9827
|
* @param tabId Optional. The ID of the tab to navigate forward; defaults to the selected tab of the current window.
|
9825
9828
|
* @param callback Optional. Called after the operation is completed.
|
@@ -11867,11 +11870,11 @@ declare namespace chrome.declarativeNetRequest {
|
|
11867
11870
|
*/
|
11868
11871
|
isCaseSensitive?: boolean | undefined;
|
11869
11872
|
|
11870
|
-
/** The regular
|
11873
|
+
/** The regular expression to check. */
|
11871
11874
|
regex: string;
|
11872
11875
|
|
11873
11876
|
/** Whether the regex specified requires capturing.
|
11874
|
-
* Capturing is only required for redirect rules which specify a
|
11877
|
+
* Capturing is only required for redirect rules which specify a regexSubstitution action.
|
11875
11878
|
* The default is false.
|
11876
11879
|
*/
|
11877
11880
|
requireCapturing?: boolean | undefined;
|
@@ -11978,7 +11981,7 @@ declare namespace chrome.declarativeNetRequest {
|
|
11978
11981
|
/**
|
11979
11982
|
* Returns the number of static rules an extension can enable before the global static rule limit is reached.
|
11980
11983
|
* @return The `getAvailableStaticRuleCount` method provides its result via callback or returned as a `Promise` (MV3 only).
|
11981
|
-
|
11984
|
+
*/
|
11982
11985
|
export function getAvailableStaticRuleCount(): Promise<number>;
|
11983
11986
|
|
11984
11987
|
/** Returns the current set of dynamic rules for the extension.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.224",
|
4
4
|
"description": "TypeScript definitions for Chrome extension development",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -93,6 +93,6 @@
|
|
93
93
|
"@types/filesystem": "*",
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
|
-
"typesPublisherContentHash": "
|
96
|
+
"typesPublisherContentHash": "d0de9f2a97f5d3508fa908fa3fae5d36ad1464019d2b937109f18ccfe8a2be81",
|
97
97
|
"typeScriptVersion": "4.2"
|
98
98
|
}
|