@types/chrome 0.0.186 → 0.0.189
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 +18 -2
- chrome/package.json +2 -7
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:
|
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
|
|
15
15
|
# Credits
|
16
|
-
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [
|
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), [Thierry Régagnon](https://github.com/tregagnon), [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
@@ -2,7 +2,6 @@
|
|
2
2
|
// Project: http://developer.chrome.com/extensions/
|
3
3
|
// Definitions by: Matthew Kimber <https://github.com/matthewkimber>
|
4
4
|
// otiai10 <https://github.com/otiai10>
|
5
|
-
// RReverser <https://github.com/rreverser>
|
6
5
|
// sreimer15 <https://github.com/sreimer15>
|
7
6
|
// MatCarlson <https://github.com/MatCarlson>
|
8
7
|
// ekinsol <https://github.com/ekinsol>
|
@@ -7362,6 +7361,12 @@ declare namespace chrome.runtime {
|
|
7362
7361
|
* @param callback Called with results
|
7363
7362
|
*/
|
7364
7363
|
export function getPlatformInfo(callback: (platformInfo: PlatformInfo) => void): void;
|
7364
|
+
/**
|
7365
|
+
* Returns information about the current platform.
|
7366
|
+
* @since Chrome 29.
|
7367
|
+
* @return The `getPlatformInfo` method provides its result via callback or returned as a `Promise` (MV3 only).
|
7368
|
+
*/
|
7369
|
+
export function getPlatformInfo(): Promise<PlatformInfo>;
|
7365
7370
|
/**
|
7366
7371
|
* Converts a relative path within an app/extension install directory to a fully-qualified URL.
|
7367
7372
|
* @param path A path to a resource within an app/extension expressed relative to its install directory.
|
@@ -7883,7 +7888,12 @@ declare namespace chrome.storage {
|
|
7883
7888
|
MAX_WRITE_OPERATIONS_PER_MINUTE: number;
|
7884
7889
|
}
|
7885
7890
|
|
7886
|
-
|
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'>;
|
7887
7897
|
export interface StorageChangedEvent
|
7888
7898
|
extends chrome.events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void> { }
|
7889
7899
|
|
@@ -7898,6 +7908,12 @@ declare namespace chrome.storage {
|
|
7898
7908
|
*/
|
7899
7909
|
export var managed: StorageArea;
|
7900
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
|
+
|
7901
7917
|
/** Fired when one or more items change. */
|
7902
7918
|
export var onChanged: StorageChangedEvent;
|
7903
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",
|
@@ -15,11 +15,6 @@
|
|
15
15
|
"url": "https://github.com/otiai10",
|
16
16
|
"githubUsername": "otiai10"
|
17
17
|
},
|
18
|
-
{
|
19
|
-
"name": "RReverser",
|
20
|
-
"url": "https://github.com/rreverser",
|
21
|
-
"githubUsername": "rreverser"
|
22
|
-
},
|
23
18
|
{
|
24
19
|
"name": "sreimer15",
|
25
20
|
"url": "https://github.com/sreimer15",
|
@@ -98,6 +93,6 @@
|
|
98
93
|
"@types/filesystem": "*",
|
99
94
|
"@types/har-format": "*"
|
100
95
|
},
|
101
|
-
"typesPublisherContentHash": "
|
96
|
+
"typesPublisherContentHash": "4cb6fd53b12ff683561a9a418cc5d2a2bba23be28d81b0e8b7ec6d46dcc592df",
|
102
97
|
"typeScriptVersion": "3.9"
|
103
98
|
}
|