Skip to content

Commit ccf5bab

Browse files
author
Andy Hanson
committed
Treat ambient shorthand declarations as explicit uses of the any type
1 parent a1eda3c commit ccf5bab

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17034,11 +17034,6 @@ namespace ts {
1703417034
}
1703517035
}
1703617036

17037-
if (compilerOptions.noImplicitAny && !node.body) {
17038-
// Ambient shorthand module is an implicit any
17039-
reportImplicitAnyError(node, anyType);
17040-
}
17041-
1704217037
if (node.body) {
1704317038
checkSourceElement(node.body);
1704417039
if (!isGlobalScopeAugmentation(node)) {

tests/baselines/reference/ambientShorthand_isImplicitAny.errors.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/baselines/reference/ambientShorthand_isImplicitAny.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/cases/conformance/ambient/ambientShorthand_isImplicitAny.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)