File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17402,7 +17402,7 @@ namespace ts {
17402
17402
}
17403
17403
}
17404
17404
}
17405
- else if (isGenericMappedType(target) && !target.declaration.nameType ) {
17405
+ else if (isGenericMappedType(target)) {
17406
17406
// A source type T is related to a target type { [P in X]: T[P] }
17407
17407
const template = getTemplateTypeFromMappedType(target);
17408
17408
const modifiers = getMappedTypeModifiers(target);
@@ -17411,7 +17411,7 @@ namespace ts {
17411
17411
(<IndexedAccessType>template).indexType === getTypeParameterFromMappedType(target)) {
17412
17412
return Ternary.True;
17413
17413
}
17414
- if (!isGenericMappedType(source)) {
17414
+ if (!isGenericMappedType(source) && !target.declaration.nameType ) {
17415
17415
const targetConstraint = getConstraintTypeFromMappedType(target);
17416
17416
const sourceKeys = getIndexType(source, /*stringsOnly*/ undefined, /*noIndexSignatures*/ true);
17417
17417
const includeOptional = modifiers & MappedTypeModifiers.IncludeOptional;
You can’t perform that action at this time.
0 commit comments