@types/chrome 0.0.203 → 0.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chrome/README.md +1 -1
- chrome/index.d.ts +8 -0
- 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: Wed,
|
11
|
+
* Last updated: Wed, 21 Dec 2022 02:32: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
@@ -7623,6 +7623,8 @@ declare namespace chrome.scripting {
|
|
7623
7623
|
target: InjectionTarget;
|
7624
7624
|
/* The JavaScript world for a script to execute within. */
|
7625
7625
|
world?: ExecutionWorld;
|
7626
|
+
/* Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target. */
|
7627
|
+
injectImmediately?: boolean;
|
7626
7628
|
} & ({
|
7627
7629
|
/* The path of the JS files to inject, relative to the extension's root directory. NOTE: Currently a maximum of one file is supported. Exactly one of files and function must be specified. */
|
7628
7630
|
files: string[];
|
@@ -10237,6 +10239,12 @@ declare namespace chrome.topSites {
|
|
10237
10239
|
|
10238
10240
|
/** Gets a list of top sites. */
|
10239
10241
|
export function get(callback: (data: MostVisitedURL[]) => void): void;
|
10242
|
+
|
10243
|
+
/**
|
10244
|
+
* Gets a list of top sites.
|
10245
|
+
* @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
|
10246
|
+
*/
|
10247
|
+
export function get(): Promise<MostVisitedURL[]>;
|
10240
10248
|
}
|
10241
10249
|
|
10242
10250
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.205",
|
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",
|
@@ -88,6 +88,6 @@
|
|
88
88
|
"@types/filesystem": "*",
|
89
89
|
"@types/har-format": "*"
|
90
90
|
},
|
91
|
-
"typesPublisherContentHash": "
|
92
|
-
"typeScriptVersion": "4.
|
91
|
+
"typesPublisherContentHash": "dfab864a7a0233539d2c6d7a6dd163c14ffd328c549f55520ce0ee93b9fbc814",
|
92
|
+
"typeScriptVersion": "4.2"
|
93
93
|
}
|