@types/chrome 0.0.176 → 0.0.179
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 +54 -8
- 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: Thu, 24 Feb 2022 20:01:52 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
@@ -952,10 +952,10 @@ declare namespace chrome.browserAction {
|
|
952
952
|
*/
|
953
953
|
declare namespace chrome.browsingData {
|
954
954
|
export interface OriginTypes {
|
955
|
-
/** Optional. Websites that have been installed as hosted applications (be careful!). */
|
956
|
-
protectedWeb?: boolean | undefined;
|
957
955
|
/** Optional. Extensions and packaged applications a user has installed (be _really_ careful!). */
|
958
956
|
extension?: boolean | undefined;
|
957
|
+
/** Optional. Websites that have been installed as hosted applications (be careful!). */
|
958
|
+
protectedWeb?: boolean | undefined;
|
959
959
|
/** Optional. Normal websites. */
|
960
960
|
unprotectedWeb?: boolean | undefined;
|
961
961
|
}
|
@@ -964,11 +964,25 @@ declare namespace chrome.browsingData {
|
|
964
964
|
export interface RemovalOptions {
|
965
965
|
/**
|
966
966
|
* Optional.
|
967
|
-
* Since Chrome
|
968
|
-
*
|
967
|
+
* Since Chrome 74.
|
968
|
+
* When present, data for origins in this list is excluded from deletion. Can't be used together with origins. Only supported for cookies, storage and cache. Cookies are excluded for the whole registrable domain.
|
969
|
+
*/
|
970
|
+
excludeOrigins?: string[] | undefined;
|
971
|
+
/**
|
972
|
+
* Optional.
|
973
|
+
* An object whose properties specify which origin types ought to be cleared. If this object isn't specified, it defaults to clearing only "unprotected" origins. Please ensure that you _really_ want to remove application data before adding 'protectedWeb' or 'extensions'.
|
969
974
|
*/
|
970
975
|
originTypes?: OriginTypes | undefined;
|
971
|
-
/**
|
976
|
+
/**
|
977
|
+
* Optional.
|
978
|
+
* Since Chrome 74.
|
979
|
+
* When present, only data for origins in this list is deleted. Only supported for cookies, storage and cache. Cookies are cleared for the whole registrable domain.
|
980
|
+
*/
|
981
|
+
origins?: string[] | undefined;
|
982
|
+
/**
|
983
|
+
* Optional.
|
984
|
+
* Remove data accumulated on or after this date, represented in milliseconds since the epoch (accessible via the {@link Date.getTime} method). If absent, defaults to 0 (which would remove all browsing data).
|
985
|
+
*/
|
972
986
|
since?: number | undefined;
|
973
987
|
}
|
974
988
|
|
@@ -985,7 +999,12 @@ declare namespace chrome.browsingData {
|
|
985
999
|
cookies?: boolean | undefined;
|
986
1000
|
/** Optional. Stored passwords. */
|
987
1001
|
passwords?: boolean | undefined;
|
988
|
-
/**
|
1002
|
+
/**
|
1003
|
+
* @deprecated Deprecated since Chrome 76.
|
1004
|
+
* Support for server-bound certificates has been removed. This data type will be ignored.
|
1005
|
+
*
|
1006
|
+
* Optional. Server-bound certificates.
|
1007
|
+
*/
|
989
1008
|
serverBoundCertificates?: boolean | undefined;
|
990
1009
|
/** Optional. The browser's download list. */
|
991
1010
|
downloads?: boolean | undefined;
|
@@ -995,7 +1014,12 @@ declare namespace chrome.browsingData {
|
|
995
1014
|
appcache?: boolean | undefined;
|
996
1015
|
/** Optional. Websites' file systems. */
|
997
1016
|
fileSystems?: boolean | undefined;
|
998
|
-
/**
|
1017
|
+
/**
|
1018
|
+
* @deprecated Deprecated since Chrome 88.
|
1019
|
+
* Support for Flash has been removed. This data type will be ignored.
|
1020
|
+
*
|
1021
|
+
* Optional. Plugins' data.
|
1022
|
+
*/
|
999
1023
|
pluginData?: boolean | undefined;
|
1000
1024
|
/** Optional. Websites' local storage data. */
|
1001
1025
|
localStorage?: boolean | undefined;
|
@@ -1027,12 +1051,23 @@ declare namespace chrome.browsingData {
|
|
1027
1051
|
*/
|
1028
1052
|
export function settings(callback: (result: SettingsCallback) => void): void;
|
1029
1053
|
/**
|
1054
|
+
* @deprecated Deprecated since Chrome 88.
|
1055
|
+
* Support for Flash has been removed. This function has no effect.
|
1056
|
+
*
|
1030
1057
|
* Clears plugins' data.
|
1031
1058
|
* @param callback Called when plugins' data has been cleared.
|
1032
1059
|
* If you specify the callback parameter, it should be a function that looks like this:
|
1033
1060
|
* function() {...};
|
1034
1061
|
*/
|
1035
1062
|
export function removePluginData(options: RemovalOptions, callback?: () => void): void;
|
1063
|
+
/**
|
1064
|
+
* Since Chrome 72.
|
1065
|
+
* Clears websites' service workers.
|
1066
|
+
* @param callback Called when the browser's service workers have been cleared.
|
1067
|
+
* If you specify the callback parameter, it should be a function that looks like this:
|
1068
|
+
* function() {...};
|
1069
|
+
*/
|
1070
|
+
export function removeServiceWorkers(options: RemovalOptions, callback?: () => void): void;
|
1036
1071
|
/**
|
1037
1072
|
* Clears the browser's stored form data (autofill).
|
1038
1073
|
* @param callback Called when the browser's form data has been cleared.
|
@@ -5785,7 +5820,7 @@ declare namespace chrome.pageCapture {
|
|
5785
5820
|
* function(binary mhtmlData) {...};
|
5786
5821
|
* Parameter mhtmlData: The MHTML data as a Blob.
|
5787
5822
|
*/
|
5788
|
-
export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData?:
|
5823
|
+
export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData?: Blob) => void): void;
|
5789
5824
|
}
|
5790
5825
|
|
5791
5826
|
////////////////////
|
@@ -7035,6 +7070,17 @@ declare namespace chrome.runtime {
|
|
7035
7070
|
* @since Chrome 32.
|
7036
7071
|
*/
|
7037
7072
|
export function restart(): void;
|
7073
|
+
/**
|
7074
|
+
* Restart the ChromeOS device when the app runs in kiosk mode after the
|
7075
|
+
* given seconds. If called again before the time ends, the reboot will
|
7076
|
+
* be delayed. If called with a value of -1, the reboot will be
|
7077
|
+
* cancelled. It's a no-op in non-kiosk mode. It's only allowed to be
|
7078
|
+
* called repeatedly by the first extension to invoke this API.
|
7079
|
+
* @since Chrome 53.
|
7080
|
+
* @param seconds
|
7081
|
+
* @param callback
|
7082
|
+
*/
|
7083
|
+
export function restartAfterDelay(seconds: number, callback?: () => void): void;
|
7038
7084
|
/**
|
7039
7085
|
* Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
|
7040
7086
|
* @since Chrome 26.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.179",
|
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",
|
@@ -98,6 +98,6 @@
|
|
98
98
|
"@types/filesystem": "*",
|
99
99
|
"@types/har-format": "*"
|
100
100
|
},
|
101
|
-
"typesPublisherContentHash": "
|
101
|
+
"typesPublisherContentHash": "036ad1a56198f9fcf2dd6fe8fdc63bd2ed266aece78877d6dd4ed3d9293d2fb9",
|
102
102
|
"typeScriptVersion": "3.8"
|
103
103
|
}
|