Skip to content

Commit 636005e

Browse files
committed
Fix the fix
1 parent c2f4d8a commit 636005e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17402,7 +17402,7 @@ namespace ts {
1740217402
}
1740317403
}
1740417404
}
17405-
else if (isGenericMappedType(target)) {
17405+
else if (isGenericMappedType(target) && (!target.declaration.nameType || relation === comparableRelation)) {
1740617406
// A source type T is related to a target type { [P in X]: T[P] }
1740717407
const template = getTemplateTypeFromMappedType(target);
1740817408
const modifiers = getMappedTypeModifiers(target);

0 commit comments

Comments
 (0)