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 4d42d21 commit 42e0868Copy full SHA for 42e0868
src/compiler/checker.ts
@@ -4777,8 +4777,11 @@ namespace ts {
4777
for (let prop of getPropertiesOfObjectType(source)) {
4778
if (!isKnownProperty(target, prop.name)) {
4779
if (reportErrors) {
4780
- reportErrorAndTryImproveErrorNode(prop.valueDeclaration,
4781
- Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(prop), typeToString(target));
+ reportErrorAndTryImproveErrorNode(
+ prop.valueDeclaration,
4782
+ Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
4783
+ symbolToString(prop),
4784
+ typeToString(target));
4785
}
4786
return true;
4787
0 commit comments