@types/chrome 0.0.189 → 0.0.192
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 +9 -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: Mon, 04 Jul 2022 15:32:21 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.
|
@@ -9349,7 +9349,7 @@ declare namespace chrome.tabs {
|
|
9349
9349
|
* Gets the tab that this script call is being made from. May be undefined if called from a non-tab context (for example: a background page or popup view).
|
9350
9350
|
* @return The `getCurrent` method provides its result via callback or returned as a `Promise` (MV3 only).
|
9351
9351
|
*/
|
9352
|
-
export function getCurrent(): Promise<Tab>;
|
9352
|
+
export function getCurrent(): Promise<Tab | undefined>;
|
9353
9353
|
/**
|
9354
9354
|
* Gets the tab that is selected in the specified window.
|
9355
9355
|
* @deprecated since Chrome 33. Please use tabs.query {active: true}.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.192",
|
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": "9a00b91579910f86a62a88a80c4d98ddc349ada456a347db161166e1404fb22e",
|
97
|
+
"typeScriptVersion": "4.0"
|
98
98
|
}
|