Skip to content

Commit ddf03ba

Browse files
committed
Rest of untyped binding pattern is back to str index sig
1 parent 8e648f9 commit ddf03ba

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,12 +3106,6 @@ namespace ts {
31063106
}
31073107
}
31083108
type = getRestType(parentType, literalMembers, declaration.symbol);
3109-
if (getPropertiesOfObjectType(type).length === 0 && getIndexTypeOfType(type, IndexKind.String) === anyType) {
3110-
if (compilerOptions.noImplicitAny) {
3111-
reportImplicitAnyError(declaration, anyType);
3112-
}
3113-
return anyType;
3114-
}
31153109
}
31163110
else {
31173111
// Use explicitly specified property name ({ p: xxx } form), or otherwise the implied name ({ p } form)

0 commit comments

Comments
 (0)