type-coverage
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -367,2 +367,34 @@ "use strict"; | ||
} | ||
else if (node.kind === ts.SyntaxKind.Constructor) { | ||
const constructorDeclaration = node; | ||
handleNode(constructorDeclaration.name, file, sourceFile); | ||
for (const parameter of constructorDeclaration.parameters) { | ||
handleNode(parameter, file, sourceFile); | ||
} | ||
handleNode(constructorDeclaration.body, file, sourceFile); | ||
} | ||
else if (node.kind === ts.SyntaxKind.NamespaceExportDeclaration) { | ||
const namespaceExportDeclaration = node; | ||
handleNode(namespaceExportDeclaration.name, file, sourceFile); | ||
} | ||
else if (node.kind === ts.SyntaxKind.QualifiedName) { | ||
const qualifiedName = node; | ||
handleNode(qualifiedName.left, file, sourceFile); | ||
handleNode(qualifiedName.right, file, sourceFile); | ||
} | ||
else if (node.kind === ts.SyntaxKind.ArrayBindingPattern) { | ||
const arrayBindingPattern = node; | ||
for (const element of arrayBindingPattern.elements) { | ||
handleNode(element, file, sourceFile); | ||
} | ||
} | ||
else if (node.kind === ts.SyntaxKind.ExternalModuleReference) { | ||
const externalModuleReference = node; | ||
handleNode(externalModuleReference.expression, file, sourceFile); | ||
} | ||
else if (node.kind === ts.SyntaxKind.SpreadAssignment) { | ||
const spreadAssignment = node; | ||
handleNode(spreadAssignment.name, file, sourceFile); | ||
handleNode(spreadAssignment.expression, file, sourceFile); | ||
} | ||
else if (node.kind === ts.SyntaxKind.EndOfFileToken | ||
@@ -378,2 +410,3 @@ || node.kind === ts.SyntaxKind.NumericLiteral | ||
|| node.kind === ts.SyntaxKind.TrueKeyword | ||
|| node.kind === ts.SyntaxKind.EmptyStatement | ||
|| node.kind === ts.SyntaxKind.BreakStatement | ||
@@ -380,0 +413,0 @@ || node.kind === ts.SyntaxKind.ContinueStatement |
{ | ||
"name": "type-coverage", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A CLI tool to check type coverage for typescript code", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # type-coverage | ||
`yarn add type-coverage -g` | ||
`yarn add global type-coverage` | ||
@@ -17,0 +17,0 @@ ## usage |
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
23302
444