We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b94c513 commit 70069aeCopy full SHA for 70069ae
src/compiler/checker.ts
@@ -8977,7 +8977,9 @@ namespace ts {
8977
reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(prop), typeToString(target));
8978
}
8979
else {
8980
- errorNode = prop.valueDeclaration;
+ if (prop.valueDeclaration) {
8981
+ errorNode = prop.valueDeclaration;
8982
+ }
8983
reportError(Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
8984
symbolToString(prop), typeToString(target));
8985
0 commit comments