@types/chrome 0.0.197 → 0.0.198
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 +23 -0
- chrome/package.json +2 -2
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: 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
|
|
chrome/index.d.ts
CHANGED
@@ -7649,6 +7649,29 @@ declare namespace chrome.scripting {
|
|
7649
7649
|
* Invoked upon completion of the injection.
|
7650
7650
|
*/
|
7651
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;
|
7652
7675
|
}
|
7653
7676
|
|
7654
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",
|
@@ -88,6 +88,6 @@
|
|
88
88
|
"@types/filesystem": "*",
|
89
89
|
"@types/har-format": "*"
|
90
90
|
},
|
91
|
-
"typesPublisherContentHash": "
|
91
|
+
"typesPublisherContentHash": "2a4f5d89e2db7aa2c2f1588512955123ab3f56b85c2e6a5199271f56a985a3ae",
|
92
92
|
"typeScriptVersion": "4.1"
|
93
93
|
}
|