@types/chrome 0.0.196 → 0.0.198
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +2 -2
- chrome/index.d.ts +23 -1
- chrome/package.json +2 -7
chrome/README.md
CHANGED
@@ -8,9 +8,9 @@ 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: Sat, 15 Oct 2022 18:02:53 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
|
|
15
15
|
# Credits
|
16
|
-
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [
|
16
|
+
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [Brian Wilson](https://github.com/echoabstract), [Sebastiaan Pasma](https://github.com/spasma), [bdbai](https://github.com/bdbai), [pokutuna](https://github.com/pokutuna), [Jason Xian](https://github.com/JasonXian), [userTim](https://github.com/usertim), [Idan Zeierman](https://github.com/idan315), [Nicolas Rodriguez](https://github.com/nicolas377), and [Ido Salomon](https://github.com/idosal).
|
chrome/index.d.ts
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
// sreimer15 <https://github.com/sreimer15>
|
6
6
|
// MatCarlson <https://github.com/MatCarlson>
|
7
7
|
// ekinsol <https://github.com/ekinsol>
|
8
|
-
// Thierry Régagnon <https://github.com/tregagnon>
|
9
8
|
// Brian Wilson <https://github.com/echoabstract>
|
10
9
|
// Sebastiaan Pasma <https://github.com/spasma>
|
11
10
|
// bdbai <https://github.com/bdbai>
|
@@ -7650,6 +7649,29 @@ declare namespace chrome.scripting {
|
|
7650
7649
|
* Invoked upon completion of the injection.
|
7651
7650
|
*/
|
7652
7651
|
export function insertCSS(injection: CSSInjection, callback?: () => void): void;
|
7652
|
+
|
7653
|
+
/**
|
7654
|
+
* Removes a CSS stylesheet that was previously inserted by this extension from a target context.
|
7655
|
+
* @param injection
|
7656
|
+
* The details of the styles to remove.
|
7657
|
+
* Note that the css, files, and origin properties must exactly match the stylesheet inserted through `insertCSS`.
|
7658
|
+
* Attempting to remove a non-existent stylesheet is a no-op.
|
7659
|
+
* @return This only returns a Promise when the callback parameter is not specified, and with MV3+.
|
7660
|
+
* @since Chrome 90
|
7661
|
+
*/
|
7662
|
+
export function removeCSS(injection: CSSInjection): Promise<void>;
|
7663
|
+
|
7664
|
+
/**
|
7665
|
+
* Removes a CSS stylesheet that was previously inserted by this extension from a target context.
|
7666
|
+
* @param injection
|
7667
|
+
* The details of the styles to remove.
|
7668
|
+
* Note that the css, files, and origin properties must exactly match the stylesheet inserted through `insertCSS`.
|
7669
|
+
* Attempting to remove a non-existent stylesheet is a no-op.
|
7670
|
+
* @param callback
|
7671
|
+
* Invoked upon completion of the removal.
|
7672
|
+
* @since Chrome 90
|
7673
|
+
*/
|
7674
|
+
export function removeCSS(injection: CSSInjection, callback?: () => void): void;
|
7653
7675
|
}
|
7654
7676
|
|
7655
7677
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.198",
|
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",
|
@@ -30,11 +30,6 @@
|
|
30
30
|
"url": "https://github.com/ekinsol",
|
31
31
|
"githubUsername": "ekinsol"
|
32
32
|
},
|
33
|
-
{
|
34
|
-
"name": "Thierry Régagnon",
|
35
|
-
"url": "https://github.com/tregagnon",
|
36
|
-
"githubUsername": "tregagnon"
|
37
|
-
},
|
38
33
|
{
|
39
34
|
"name": "Brian Wilson",
|
40
35
|
"url": "https://github.com/echoabstract",
|
@@ -93,6 +88,6 @@
|
|
93
88
|
"@types/filesystem": "*",
|
94
89
|
"@types/har-format": "*"
|
95
90
|
},
|
96
|
-
"typesPublisherContentHash": "
|
91
|
+
"typesPublisherContentHash": "2a4f5d89e2db7aa2c2f1588512955123ab3f56b85c2e6a5199271f56a985a3ae",
|
97
92
|
"typeScriptVersion": "4.1"
|
98
93
|
}
|