type-coverage
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -909,5 +909,7 @@ "use strict"; | ||
const sourceFile = program.getSourceFile(file); | ||
sourceFile.forEachChild(node => { | ||
handleNode(node, file, sourceFile); | ||
}); | ||
if (sourceFile) { | ||
sourceFile.forEachChild(node => { | ||
handleNode(node, file, sourceFile); | ||
}); | ||
} | ||
} | ||
@@ -914,0 +916,0 @@ const percent = Math.round(100 * correctCount / totalCount); |
{ | ||
"name": "type-coverage", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A CLI tool to check type coverage for typescript code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,4 @@ # type-coverage | ||
This tool will check type of all identifiers, `the code coverage` = `the count of identifiers whose type is not any` / `the total count of identifiers`, the higher, the better. | ||
[![Dependency Status](https://david-dm.org/plantain-00/type-coverage.svg)](https://david-dm.org/plantain-00/type-coverage) | ||
@@ -7,0 +9,0 @@ [![devDependency Status](https://david-dm.org/plantain-00/type-coverage/dev-status.svg)](https://david-dm.org/plantain-00/type-coverage#info=devDependencies) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50451
934
30