@types/chrome 0.0.195 → 0.0.197
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +2 -2
- chrome/index.d.ts +22 -1
- chrome/package.json +3 -8
chrome/README.md
CHANGED
@@ -8,9 +8,9 @@ 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: Fri,
|
11
|
+
* Last updated: Fri, 16 Sep 2022 22:02:46 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
|
|
15
15
|
# Credits
|
16
|
-
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [
|
16
|
+
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [Brian Wilson](https://github.com/echoabstract), [Sebastiaan Pasma](https://github.com/spasma), [bdbai](https://github.com/bdbai), [pokutuna](https://github.com/pokutuna), [Jason Xian](https://github.com/JasonXian), [userTim](https://github.com/usertim), [Idan Zeierman](https://github.com/idan315), [Nicolas Rodriguez](https://github.com/nicolas377), and [Ido Salomon](https://github.com/idosal).
|
chrome/index.d.ts
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
// sreimer15 <https://github.com/sreimer15>
|
6
6
|
// MatCarlson <https://github.com/MatCarlson>
|
7
7
|
// ekinsol <https://github.com/ekinsol>
|
8
|
-
// Thierry Régagnon <https://github.com/tregagnon>
|
9
8
|
// Brian Wilson <https://github.com/echoabstract>
|
10
9
|
// Sebastiaan Pasma <https://github.com/spasma>
|
11
10
|
// bdbai <https://github.com/bdbai>
|
@@ -7854,6 +7853,20 @@ declare namespace chrome.storage {
|
|
7854
7853
|
* Parameter items: Object with items in their key-value mappings.
|
7855
7854
|
*/
|
7856
7855
|
get(keys: string | string[] | { [key: string]: any } | null, callback: (items: { [key: string]: any }) => void): void;
|
7856
|
+
/**
|
7857
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
7858
|
+
* @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
|
7859
|
+
* @return A void Promise.
|
7860
|
+
* @since Chrome 102
|
7861
|
+
*/
|
7862
|
+
setAccessLevel(accessOptions: { accessLevel: AccessLevel }): Promise<void>;
|
7863
|
+
/**
|
7864
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
7865
|
+
* @param accessOptions An object containing an accessLevel key which contains the access level of the storage area.
|
7866
|
+
* @param callback Optional.
|
7867
|
+
* @since Chrome 102
|
7868
|
+
*/
|
7869
|
+
setAccessLevel(accessOptions: { accessLevel: AccessLevel }, callback: () => void): void;
|
7857
7870
|
/**
|
7858
7871
|
* Fired when one or more items change within this storage area.
|
7859
7872
|
* @param keys A single key to get, list of keys to get, or a dictionary specifying default values.
|
@@ -7910,6 +7923,14 @@ declare namespace chrome.storage {
|
|
7910
7923
|
export interface StorageChangedEvent
|
7911
7924
|
extends chrome.events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void> { }
|
7912
7925
|
|
7926
|
+
type AccessLevel = keyof typeof AccessLevel;
|
7927
|
+
|
7928
|
+
/** The storage area's access level. */
|
7929
|
+
export var AccessLevel: {
|
7930
|
+
TRUSTED_AND_UNTRUSTED_CONTEXTS: 'TRUSTED_AND_UNTRUSTED_CONTEXTS',
|
7931
|
+
TRUSTED_CONTEXTS: 'TRUSTED_CONTEXTS'
|
7932
|
+
};
|
7933
|
+
|
7913
7934
|
/** Items in the local storage area are local to each machine. */
|
7914
7935
|
export var local: LocalStorageArea;
|
7915
7936
|
/** Items in the sync storage area are synced using Chrome Sync. */
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.197",
|
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",
|
@@ -30,11 +30,6 @@
|
|
30
30
|
"url": "https://github.com/ekinsol",
|
31
31
|
"githubUsername": "ekinsol"
|
32
32
|
},
|
33
|
-
{
|
34
|
-
"name": "Thierry Régagnon",
|
35
|
-
"url": "https://github.com/tregagnon",
|
36
|
-
"githubUsername": "tregagnon"
|
37
|
-
},
|
38
33
|
{
|
39
34
|
"name": "Brian Wilson",
|
40
35
|
"url": "https://github.com/echoabstract",
|
@@ -93,6 +88,6 @@
|
|
93
88
|
"@types/filesystem": "*",
|
94
89
|
"@types/har-format": "*"
|
95
90
|
},
|
96
|
-
"typesPublisherContentHash": "
|
97
|
-
"typeScriptVersion": "4.
|
91
|
+
"typesPublisherContentHash": "bd13d21f2df4fdeaa351f412a548bfabd73663dc02bf17daa103d08cae3aa2ed",
|
92
|
+
"typeScriptVersion": "4.1"
|
98
93
|
}
|