mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 12:03:44 -05:00
Treat ambient shorthand declarations as explicit uses of the any type
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user