diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cb8f049f3a9..c4920c29770 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -3106,12 +3106,6 @@ namespace ts { } } type = getRestType(parentType, literalMembers, declaration.symbol); - if (getPropertiesOfObjectType(type).length === 0 && getIndexTypeOfType(type, IndexKind.String) === anyType) { - if (compilerOptions.noImplicitAny) { - reportImplicitAnyError(declaration, anyType); - } - return anyType; - } } else { // Use explicitly specified property name ({ p: xxx } form), or otherwise the implied name ({ p } form)