From d49fabb1c9e185ab3a9dd342f625c5fe6ff26c5a Mon Sep 17 00:00:00 2001 From: Vlad Rindevich Date: Sun, 5 Sep 2021 02:09:42 +0300 Subject: [PATCH] fix: update Typescript code --- src/Location.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Location.ts b/src/Location.ts index 75c88a8..60d6c45 100644 --- a/src/Location.ts +++ b/src/Location.ts @@ -71,7 +71,7 @@ function traverseWebComponents( const iter = document.createNodeIterator( node, NodeFilter.SHOW_ELEMENT, - (foundNode) => + (foundNode: Element) => getShadowRoot(foundNode) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT,