@types/chrome 0.0.294 → 0.0.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +12 -12
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 14 Jan 2025 07:02:19 GMT
11
+ * Last updated: Tue, 14 Jan 2025 18:36: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
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -9001,12 +9001,6 @@ declare namespace chrome {
9001
9001
  export {};
9002
9002
 
9003
9003
  export interface StorageArea {
9004
- /**
9005
- * Gets the amount of space (in bytes) being used by one or more items.
9006
- * @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
9007
- * Parameter bytesInUse: Amount of space being used in storage, in bytes.
9008
- */
9009
- getBytesInUse(callback: (bytesInUse: number) => void): void;
9010
9004
  /**
9011
9005
  * Gets the amount of space (in bytes) being used by one or more items.
9012
9006
  * @param keys Optional. A single key or list of keys to get the total usage for. An empty list will return 0. Pass in null to get the total usage of all of storage.
@@ -9024,6 +9018,12 @@ declare namespace chrome {
9024
9018
  keys: keyof T | Array<keyof T> | null,
9025
9019
  callback: (bytesInUse: number) => void,
9026
9020
  ): void;
9021
+ /**
9022
+ * Gets the amount of space (in bytes) being used by one or more items.
9023
+ * @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
9024
+ * Parameter bytesInUse: Amount of space being used in storage, in bytes.
9025
+ */
9026
+ getBytesInUse(callback: (bytesInUse: number) => void): void;
9027
9027
  /**
9028
9028
  * Removes all items from storage.
9029
9029
  * @return A void Promise
@@ -9067,12 +9067,6 @@ declare namespace chrome {
9067
9067
  * Callback on success, or on failure (in which case runtime.lastError will be set).
9068
9068
  */
9069
9069
  remove<T = { [key: string]: any }>(keys: keyof T | Array<keyof T>, callback: () => void): void;
9070
- /**
9071
- * Gets the entire contents of storage.
9072
- * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
9073
- * Parameter items: Object with items in their key-value mappings.
9074
- */
9075
- get<T = { [key: string]: any }>(callback: (items: T) => void): void;
9076
9070
  /**
9077
9071
  * Gets one or more items from storage.
9078
9072
  * @param keys A single key to get, list of keys to get, or a dictionary specifying default values.
@@ -9094,6 +9088,12 @@ declare namespace chrome {
9094
9088
  keys: NoInferX<keyof T> | Array<NoInferX<keyof T>> | Partial<NoInferX<T>> | null,
9095
9089
  callback: (items: T) => void,
9096
9090
  ): void;
9091
+ /**
9092
+ * Gets the entire contents of storage.
9093
+ * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
9094
+ * Parameter items: Object with items in their key-value mappings.
9095
+ */
9096
+ get<T = { [key: string]: any }>(callback: (items: T) => void): void;
9097
9097
  /**
9098
9098
  * Sets the desired access level for the storage area. The default will be only trusted contexts.
9099
9099
  * @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.294",
3
+ "version": "0.0.295",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -94,6 +94,6 @@
94
94
  "@types/har-format": "*"
95
95
  },
96
96
  "peerDependencies": {},
97
- "typesPublisherContentHash": "ee5173779b32ec36ced6918cfdf3e272c65479c5642f0cfcc39c0a9ac51cdbad",
97
+ "typesPublisherContentHash": "e96123306c3ea40f696973c9b2fb5b71962711067de0970609a483c2bfe50e08",
98
98
  "typeScriptVersion": "5.0"
99
99
  }