File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -24457,16 +24457,13 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
24457
24457
}
24458
24458
return Ternary.False;
24459
24459
}
24460
- if (isObjectLiteralType (target)) {
24460
+ if (getObjectFlags (target) & ObjectFlags.FreshLiteral ) {
24461
24461
for (const sourceProp of excludeProperties(getPropertiesOfType(source), excludedProperties)) {
24462
24462
if (!getPropertyOfObjectType(target, sourceProp.escapedName)) {
24463
- const sourceType = getTypeOfSymbol(sourceProp);
24464
- if (!(sourceType.flags & TypeFlags.Undefined)) {
24465
- if (reportErrors) {
24466
- reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target));
24467
- }
24468
- return Ternary.False;
24463
+ if (reportErrors) {
24464
+ reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target));
24469
24465
}
24466
+ return Ternary.False;
24470
24467
}
24471
24468
}
24472
24469
}
You can’t perform that action at this time.
0 commit comments