Treat ambient shorthand declarations as explicit uses of the any type

This commit is contained in:
Andy Hanson
2016-08-15 08:51:15 -07:00
parent a1eda3c23d
commit ccf5bab8ad
4 changed files with 0 additions and 20 deletions

View File

@@ -17034,11 +17034,6 @@ namespace ts {
}
}
if (compilerOptions.noImplicitAny && !node.body) {
// Ambient shorthand module is an implicit any
reportImplicitAnyError(node, anyType);
}
if (node.body) {
checkSourceElement(node.body);
if (!isGlobalScopeAugmentation(node)) {