type-coverage-core
Advanced tools
Comparing version 2.16.0 to 2.16.1
@@ -43,2 +43,16 @@ "use strict"; | ||
const cache = typeCheckResult.cache[file]; | ||
if (cache) { | ||
if (lintOptions.ignoreNested) { | ||
cache.anys = cache.anys.filter((c) => c.kind !== 2 /* containsAny */); | ||
} | ||
if (lintOptions.ignoreAsAssertion) { | ||
cache.anys = cache.anys.filter((c) => c.kind !== 3 /* unsafeAs */); | ||
} | ||
if (lintOptions.ignoreTypeAssertion) { | ||
cache.anys = cache.anys.filter((c) => c.kind !== 4 /* unsafeTypeAssertion */); | ||
} | ||
if (lintOptions.ignoreNonNullAssertion) { | ||
cache.anys = cache.anys.filter((c) => c.kind !== 5 /* unsafeNonNull */); | ||
} | ||
} | ||
sourceFileInfos.push({ | ||
@@ -45,0 +59,0 @@ file, |
{ | ||
"name": "type-coverage-core", | ||
"version": "2.16.0", | ||
"version": "2.16.1", | ||
"description": "A library to check type coverage for typescript code", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
53731
1530