flow-remove-types
Advanced tools
Comparing version 2.246.0 to 2.247.0
@@ -171,3 +171,7 @@ /** | ||
removeNode(context, ast.tokens[typeIdx - 1]); // `as` token | ||
removeNode(context, node.typeAnnotation); | ||
if (node.typeAnnotation.type === 'GenericTypeAnnotation') { | ||
removeNode(context, ast.tokens[typeIdx]); | ||
} else { | ||
removeNode(context, node.typeAnnotation); | ||
} | ||
}, | ||
@@ -174,0 +178,0 @@ |
{ | ||
"name": "flow-remove-types", | ||
"version": "2.246.0", | ||
"version": "2.247.0", | ||
"description": "Removes Flow type annotations from JavaScript files with speed and simplicity.", | ||
@@ -5,0 +5,0 @@ "author": { |
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
44104
710