We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557aba7 commit 6053dffCopy full SHA for 6053dff
src/Dom/shadow.ts
@@ -2,6 +2,6 @@ export function inShadow(ele: Node) {
2
return ele?.getRootNode() !== ele?.ownerDocument;
3
}
4
5
-export function getShadowRoot(ele: Node) {
6
- return inShadow(ele) ? ele?.getRootNode() : null;
+export function getShadowRoot(ele: Node): ShadowRoot {
+ return inShadow(ele) ? (ele?.getRootNode() as ShadowRoot) : null;
7
0 commit comments