@types/chrome 0.0.188 → 0.0.189
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 +12 -1
- 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: Tue, 07 Jun 2022 20:31:34 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
@@ -7888,7 +7888,12 @@ declare namespace chrome.storage {
|
|
7888
7888
|
MAX_WRITE_OPERATIONS_PER_MINUTE: number;
|
7889
7889
|
}
|
7890
7890
|
|
7891
|
-
|
7891
|
+
export interface SessionStorageArea extends StorageArea {
|
7892
|
+
/** The maximum amount (in bytes) of data that can be stored in memory, as measured by estimating the dynamically allocated memory usage of every value and key. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError. */
|
7893
|
+
QUOTA_BYTES: number;
|
7894
|
+
}
|
7895
|
+
|
7896
|
+
type AreaName = keyof Pick<typeof chrome.storage, 'sync' | 'local' | 'managed' | 'session'>;
|
7892
7897
|
export interface StorageChangedEvent
|
7893
7898
|
extends chrome.events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void> { }
|
7894
7899
|
|
@@ -7903,6 +7908,12 @@ declare namespace chrome.storage {
|
|
7903
7908
|
*/
|
7904
7909
|
export var managed: StorageArea;
|
7905
7910
|
|
7911
|
+
/**
|
7912
|
+
* Items in the session storage area are stored in-memory and will not be persisted to disk.
|
7913
|
+
* @since Chrome 102.
|
7914
|
+
*/
|
7915
|
+
export var session: SessionStorageArea;
|
7916
|
+
|
7906
7917
|
/** Fired when one or more items change. */
|
7907
7918
|
export var onChanged: StorageChangedEvent;
|
7908
7919
|
}
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.189",
|
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": "4cb6fd53b12ff683561a9a418cc5d2a2bba23be28d81b0e8b7ec6d46dcc592df",
|
97
97
|
"typeScriptVersion": "3.9"
|
98
98
|
}
|