Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-coverage-core

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-coverage-core - npm Package Compare versions

Comparing version 2.8.1 to 2.8.2

14

dist/checker.js

@@ -67,7 +67,11 @@ "use strict";

if (context.strict) {
// exclude `foo as const` and `<const>foo`
if ((typescript_1.default.isAsExpression(node) || typescript_1.default.isTypeAssertion(node))
&& typescript_1.default.isTypeReferenceNode(node.type)
&& node.type.getText() === 'const') {
return;
if ((typescript_1.default.isAsExpression(node) || typescript_1.default.isTypeAssertion(node))) {
// exclude `foo as const` and `<const>foo`
if (typescript_1.default.isTypeReferenceNode(node.type) && node.type.getText() === 'const') {
return;
}
// exclude `foo as unknown` and `<unknown>foo`
if (node.type.kind === typescript_1.default.SyntaxKind.UnknownKeyword) {
return;
}
}

@@ -74,0 +78,0 @@ const success = collectAny(node, context);

{
"name": "type-coverage-core",
"version": "2.8.1",
"version": "2.8.2",
"description": "A library to check type coverage for typescript code",

@@ -22,3 +22,3 @@ "main": "dist/index.js",

},
"gitHead": "2ac44acd45a6da1fb887348c2cf18aa857f9e663"
"gitHead": "b18eae530375734b542ee5b2c0d49d244c8a6720"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc