@types/chrome 0.0.190 → 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 +6 -7
- 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
@@ -7597,7 +7597,7 @@ declare namespace chrome.scripting {
|
|
7597
7597
|
target: InjectionTarget;
|
7598
7598
|
}
|
7599
7599
|
|
7600
|
-
export type ScriptInjection<Args extends any[]
|
7600
|
+
export type ScriptInjection<Args extends any[]> = {
|
7601
7601
|
/* Details specifying the target into which to inject the script. */
|
7602
7602
|
target: InjectionTarget;
|
7603
7603
|
/* The JavaScript world for a script to execute within. */
|
@@ -7607,14 +7607,13 @@ declare namespace chrome.scripting {
|
|
7607
7607
|
files: string[];
|
7608
7608
|
} | ({
|
7609
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. */
|
7610
|
-
func: (
|
7611
|
-
}
|
7612
|
-
/*
|
7613
|
-
args
|
7614
|
-
} : {
|
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;
|
7615
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. */
|
7616
7615
|
args: Args;
|
7617
|
-
}))
|
7616
|
+
}))
|
7618
7617
|
|
7619
7618
|
/**
|
7620
7619
|
* Injects a script into a target context. The script will be run at document_end.
|
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
|
}
|