File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3519,7 +3519,7 @@ declare namespace chrome {
35193519 * Requests chrome to return the open/closed shadow roots else return null.
35203520 * @param element reference of HTMLElement.
35213521 */
3522- export function openOrClosedShadowRoot(element: HTMLElement): ShadowRoot;
3522+ export function openOrClosedShadowRoot(element: HTMLElement): ShadowRoot | null ;
35233523 }
35243524
35253525 ////////////////////
Original file line number Diff line number Diff line change @@ -5080,3 +5080,8 @@ function testReadingList() {
50805080 onEntryUpdated . hasListeners ( ) ; // $ExpectType boolean
50815081 } ;
50825082}
5083+
5084+ // https://developer.chrome.com/docs/extensions/reference/api/dom
5085+ function testDom ( ) {
5086+ chrome . dom . openOrClosedShadowRoot ( document . body ) ; // $ExpectType ShadowRoot | null
5087+ }
You can’t perform that action at this time.
0 commit comments