@types/chrome 0.0.221 → 0.0.222
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 +18 -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: Sun, 12 Mar 2023 13:32:32 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;
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.222",
|
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": "a65eecc1cc99f3dcb852a4c4d53d7b0667fe41258bee4c615976b800986ebccb",
|
97
97
|
"typeScriptVersion": "4.2"
|
98
98
|
}
|