@types/chrome 0.0.176 → 0.0.177

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +42 -7
  3. 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: Mon, 10 Jan 2022 21:01:33 GMT
11
+ * Last updated: Mon, 24 Jan 2022 14:01:35 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 21.
968
- * 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'.
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
- /** Optional. Remove data accumulated on or after this date, represented in milliseconds since the epoch (accessible via the getTime method of the JavaScript Date object). If absent, defaults to 0 (which would remove all browsing data). */
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
- /** Optional. Server-bound certificates. */
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
- /** Optional. Plugins' data. */
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.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.176",
3
+ "version": "0.0.177",
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": "e98dddab5c5e55b3fd116b4c0c4654ee2201d702124976b44c9030274210ba40",
101
+ "typesPublisherContentHash": "a5f93025e2722961165bcf68177c845ec912f4bac2651adf4280653df9f12a46",
102
102
  "typeScriptVersion": "3.8"
103
103
  }