From 7ef4fd29db917e7b68b088440dd98b2fb6e3a705 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Wed, 21 Aug 2024 14:55:55 -0300 Subject: [PATCH] as XmlScope --- src/findNodes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/findNodes.ts b/src/findNodes.ts index 4e5db1b..1f6e853 100644 --- a/src/findNodes.ts +++ b/src/findNodes.ts @@ -30,7 +30,7 @@ function getFilteredScopes(program: Program) { for (const filteredScope of program.getScopes().filter((scope) => isXmlScope(scope))) { if (!hasExclusions) { - scopes.push(filteredScope); + scopes.push(filteredScope as XmlScope); continue; // Skip further checks since it's explicitly included } @@ -39,7 +39,7 @@ function getFilteredScopes(program: Program) { ); if (isIncluded) { - scopes.push(filteredScope); + scopes.push(filteredScope as XmlScope); continue; // Skip further checks since it's explicitly included } @@ -47,7 +47,7 @@ function getFilteredScopes(program: Program) { minimatch.match([filteredScope.name], pattern).length > 0 ); if (!isExcluded) { - scopes.push(filteredScope); + scopes.push(filteredScope as XmlScope); } }