@types/chrome 0.0.194 → 0.0.195
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: Fri, 19 Aug 2022
|
11
|
+
* Last updated: Fri, 19 Aug 2022 18:02:30 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
@@ -2469,7 +2469,7 @@ declare namespace chrome.devtools.inspectedWindow {
|
|
2469
2469
|
export var tabId: number;
|
2470
2470
|
|
2471
2471
|
/** Reloads the inspected page. */
|
2472
|
-
export function reload(reloadOptions
|
2472
|
+
export function reload(reloadOptions?: ReloadOptions): void;
|
2473
2473
|
/**
|
2474
2474
|
* Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a JavaScript exception that occurs during evaluation. In either case, the result parameter of the callback is undefined. In the case of a DevTools-side error, the isException parameter is non-null and has isError set to true and code set to an error code. In the case of a JavaScript error, isException is set to true and value is set to the string value of thrown object.
|
2475
2475
|
* @param expression An expression to evaluate.
|
@@ -7854,6 +7854,14 @@ declare namespace chrome.storage {
|
|
7854
7854
|
* Parameter items: Object with items in their key-value mappings.
|
7855
7855
|
*/
|
7856
7856
|
get(keys: string | string[] | { [key: string]: any } | null, callback: (items: { [key: string]: any }) => void): void;
|
7857
|
+
/**
|
7858
|
+
* Fired when one or more items change within this storage area.
|
7859
|
+
* @param keys A single key to get, list of keys to get, or a dictionary specifying default values.
|
7860
|
+
* An empty list or object will return an empty result object. Pass in null to get the entire contents of storage.
|
7861
|
+
* @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
|
7862
|
+
* Parameter items: Object with items in their key-value mappings.
|
7863
|
+
*/
|
7864
|
+
onChanged: StorageAreaChangedEvent;
|
7857
7865
|
}
|
7858
7866
|
|
7859
7867
|
export interface StorageChange {
|
@@ -7895,6 +7903,9 @@ declare namespace chrome.storage {
|
|
7895
7903
|
QUOTA_BYTES: number;
|
7896
7904
|
}
|
7897
7905
|
|
7906
|
+
export interface StorageAreaChangedEvent
|
7907
|
+
extends chrome.events.Event<(changes: { [key: string]: StorageChange }) => void> { }
|
7908
|
+
|
7898
7909
|
type AreaName = keyof Pick<typeof chrome.storage, 'sync' | 'local' | 'managed' | 'session'>;
|
7899
7910
|
export interface StorageChangedEvent
|
7900
7911
|
extends chrome.events.Event<(changes: { [key: string]: StorageChange }, areaName: AreaName) => void> { }
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.195",
|
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": "8ff0cf531656b035cce43c232164d7453600f299b036db13715cbf871239332f",
|
97
97
|
"typeScriptVersion": "4.0"
|
98
98
|
}
|