@types/chrome 0.0.188 → 0.0.191
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 +20 -9
- chrome/package.json +3 -3
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: Sun, 26 Jun 2022 20:01:36 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
@@ -7214,8 +7214,9 @@ declare namespace chrome.runtime {
|
|
7214
7214
|
type?: string | undefined;
|
7215
7215
|
id?: string | undefined;
|
7216
7216
|
description?: string | undefined;
|
7217
|
-
language?: string | undefined;
|
7217
|
+
language?: string[] | string | undefined;
|
7218
7218
|
layouts?: string[] | undefined;
|
7219
|
+
indicator?: string | undefined;
|
7219
7220
|
}[] | undefined;
|
7220
7221
|
key?: string | undefined;
|
7221
7222
|
minimum_chrome_version?: string | undefined;
|
@@ -7596,7 +7597,7 @@ declare namespace chrome.scripting {
|
|
7596
7597
|
target: InjectionTarget;
|
7597
7598
|
}
|
7598
7599
|
|
7599
|
-
export type ScriptInjection<Args extends any[]
|
7600
|
+
export type ScriptInjection<Args extends any[]> = {
|
7600
7601
|
/* Details specifying the target into which to inject the script. */
|
7601
7602
|
target: InjectionTarget;
|
7602
7603
|
/* The JavaScript world for a script to execute within. */
|
@@ -7606,14 +7607,13 @@ declare namespace chrome.scripting {
|
|
7606
7607
|
files: string[];
|
7607
7608
|
} | ({
|
7608
7609
|
/* A JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of files and function must be specified. */
|
7609
|
-
func: (
|
7610
|
-
}
|
7611
|
-
/*
|
7612
|
-
args
|
7613
|
-
} : {
|
7610
|
+
func: () => void;
|
7611
|
+
} | {
|
7612
|
+
/* A JavaScript function to inject. This function will be serialized, and then deserialized for injection. This means that any bound parameters and execution context will be lost. Exactly one of files and function must be specified. */
|
7613
|
+
func: (...args: Args) => void;
|
7614
7614
|
/* The arguments to carry into a provided function. This is only valid if the func parameter is specified. These arguments must be JSON-serializable. */
|
7615
7615
|
args: Args;
|
7616
|
-
}))
|
7616
|
+
}))
|
7617
7617
|
|
7618
7618
|
/**
|
7619
7619
|
* Injects a script into a target context. The script will be run at document_end.
|
@@ -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.191",
|
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": "
|
97
|
-
"typeScriptVersion": "
|
96
|
+
"typesPublisherContentHash": "6d465695f83235fa509fdb2534a8f1852ef6f0adb60e6a86b967a5ee31197bc0",
|
97
|
+
"typeScriptVersion": "4.0"
|
98
98
|
}
|