We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39364ee commit 1c25b1aCopy full SHA for 1c25b1a
src/compiler/checker.ts
@@ -40770,7 +40770,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
40770
}
40771
40772
function widenTypeInferredFromInitializer(declaration: HasExpressionInitializer, type: Type) {
40773
- const widened = getWidenedLiteralTypeForInitializer(declaration, type)
+ const widened = getWidenedLiteralTypeForInitializer(declaration, type);
40774
if (isInJSFile(declaration)) {
40775
if (isEmptyLiteralType(widened)) {
40776
reportImplicitAny(declaration, anyType);
0 commit comments