@types/chrome 0.0.221 → 0.0.223
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 +21 -0
- 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: Mon, 13 Mar 2023 22:32:43 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
@@ -2890,6 +2890,11 @@ declare namespace chrome.downloads {
|
|
2890
2890
|
conflictAction?: string | undefined;
|
2891
2891
|
}
|
2892
2892
|
|
2893
|
+
export interface UiOptions {
|
2894
|
+
/** Enable or disable the download UI. */
|
2895
|
+
enabled: boolean;
|
2896
|
+
}
|
2897
|
+
|
2893
2898
|
export interface DownloadChangedEvent extends chrome.events.Event<(downloadDelta: DownloadDelta) => void> { }
|
2894
2899
|
|
2895
2900
|
export interface DownloadCreatedEvent extends chrome.events.Event<(downloadItem: DownloadItem) => void> { }
|
@@ -3026,6 +3031,19 @@ declare namespace chrome.downloads {
|
|
3026
3031
|
export function drag(downloadId: number): void;
|
3027
3032
|
/** Enable or disable the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. Enabling the shelf while at least one other extension has disabled it will return an error through runtime.lastError. Requires the "downloads.shelf" permission in addition to the "downloads" permission. */
|
3028
3033
|
export function setShelfEnabled(enabled: boolean): void;
|
3034
|
+
/**
|
3035
|
+
* Change the download UI of every window associated with the current browser profile. As long as at least one extension has set UiOptions.enabled to false, the download UI will be hidden. Setting UiOptions.enabled to true while at least one other extension has disabled it will return an error through runtime.lastError. Requires the "downloads.ui" permission in addition to the "downloads" permission.
|
3036
|
+
* @param options Encapsulate a change to the download UI.
|
3037
|
+
* @since Chrome 105
|
3038
|
+
*/
|
3039
|
+
export function setUiOptions(options: UiOptions): Promise<void>;
|
3040
|
+
/**
|
3041
|
+
* Change the download UI of every window associated with the current browser profile. As long as at least one extension has set UiOptions.enabled to false, the download UI will be hidden. Setting UiOptions.enabled to true while at least one other extension has disabled it will return an error through runtime.lastError. Requires the "downloads.ui" permission in addition to the "downloads" permission.
|
3042
|
+
* @param options Encapsulate a change to the download UI.
|
3043
|
+
* @param callback Called when the setUiOptions request is completed.
|
3044
|
+
* @since Chrome 105
|
3045
|
+
*/
|
3046
|
+
export function setUiOptions(options: UiOptions, callback: () => void): void;
|
3029
3047
|
|
3030
3048
|
/** When any of a DownloadItem's properties except bytesReceived and estimatedEndTime changes, this event fires with the downloadId and an object containing the properties that changed. */
|
3031
3049
|
export var onChanged: DownloadChangedEvent;
|
@@ -6894,6 +6912,8 @@ declare namespace chrome.runtime {
|
|
6894
6912
|
| 'desktopCapture'
|
6895
6913
|
| 'documentScan'
|
6896
6914
|
| 'downloads'
|
6915
|
+
| 'downloads.shelf'
|
6916
|
+
| 'downloads.ui'
|
6897
6917
|
| 'enterprise.deviceAttributes'
|
6898
6918
|
| 'enterprise.hardwarePlatform'
|
6899
6919
|
| 'enterprise.networkingAttributes'
|
@@ -6913,6 +6933,7 @@ declare namespace chrome.runtime {
|
|
6913
6933
|
| 'management'
|
6914
6934
|
| 'nativeMessaging'
|
6915
6935
|
| 'notifications'
|
6936
|
+
| 'offscreen'
|
6916
6937
|
| 'pageCapture'
|
6917
6938
|
| 'platformKeys'
|
6918
6939
|
| 'power'
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.223",
|
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": "abd12ccb585769aee0f8fd7ce505ed4416f28b9d2f6e7f57fad983136be04177",
|
97
97
|
"typeScriptVersion": "4.2"
|
98
98
|
}
|