Merge pull request #10342 from Microsoft/ambient_shorthand_is_explicit_any

Treat ambient shorthand declarations as explicit uses of the `any` type
This commit is contained in:
Mohamed Hegazy authored and GitHub committed 2016-08-17 13:33:13 -07:00
commit ef2d6ab014
4 files changed
-20

No files matched your search

-5
View File
@@ -17095,11 +17095,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)) {