@types/chrome 0.0.246 → 0.0.247

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.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +16 -0
  3. 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: Thu, 14 Sep 2023 01:49:18 GMT
11
+ * Last updated: Tue, 17 Oct 2023 08:35:46 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
@@ -2781,6 +2781,22 @@ declare namespace chrome.documentScan {
2781
2781
  export function scan(options: DocumentScanOptions, callback: (result: DocumentScanCallbackArg) => void): void;
2782
2782
  }
2783
2783
 
2784
+ ////////////////////
2785
+ // DOM
2786
+ ////////////////////
2787
+ /**
2788
+ * Use the chrome.dom API to programmatically access shadow root in an HTMLElement.
2789
+ * Availability: Since Chrome 88+.
2790
+ */
2791
+ declare namespace chrome.dom {
2792
+ /**
2793
+ * Since Chrome 88+.
2794
+ * Requests chrome to return the open/closed shadow roots else return null.
2795
+ * @param element reference of HTMLElement.
2796
+ */
2797
+ export function openOrClosedShadowRoot(element: HTMLElement): ShadowRoot;
2798
+ }
2799
+
2784
2800
  ////////////////////
2785
2801
  // Dev Tools - Downloads
2786
2802
  ////////////////////
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.246",
3
+ "version": "0.0.247",
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": "d34ba23465c02e7a99227f0693cc1dc72ebb90df2f125628f9d2e76ed11c2d03",
96
+ "typesPublisherContentHash": "512090978eb88598330492b74665ed86878337edf6a414a257d546788aab1765",
97
97
  "typeScriptVersion": "4.5"
98
98
  }