type-coverage-core
Advanced tools
Comparing version 2.13.0 to 2.13.3
@@ -76,3 +76,4 @@ "use strict"; | ||
if (context.strict) { | ||
if ((typescript_1.default.isAsExpression(node) || typescript_1.default.isTypeAssertion(node))) { | ||
// include `foo as any` and `<any>foo` | ||
if ((typescript_1.default.isAsExpression(node) || typescript_1.default.isTypeAssertion(node)) && node.type.kind !== typescript_1.default.SyntaxKind.AnyKeyword) { | ||
// exclude `foo as const` and `<const>foo` | ||
@@ -79,0 +80,0 @@ if (typescript_1.default.isTypeReferenceNode(node.type) && node.type.getText() === 'const') { |
{ | ||
"name": "type-coverage-core", | ||
"version": "2.13.0", | ||
"version": "2.13.3", | ||
"description": "A library to check type coverage for typescript code", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
49999
1259