File tree 1 file changed +5
-0
lines changed 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -31325,6 +31325,7 @@ namespace ts {
31325
31325
31326
31326
function checkMappedType(node: MappedTypeNode) {
31327
31327
checkSourceElement(node.typeParameter);
31328
+ checkSourceElement(node.nameType);
31328
31329
checkSourceElement(node.type);
31329
31330
31330
31331
if (!node.type) {
@@ -31334,6 +31335,10 @@ namespace ts {
31334
31335
const type = <MappedType>getTypeFromMappedTypeNode(node);
31335
31336
const constraintType = getConstraintTypeFromMappedType(type);
31336
31337
checkTypeAssignableTo(constraintType, keyofConstraintType, getEffectiveConstraintOfTypeParameter(node.typeParameter));
31338
+ const nameType = getNameTypeFromMappedType(type);
31339
+ if (nameType) {
31340
+ checkTypeAssignableTo(nameType, keyofConstraintType, node.nameType);
31341
+ }
31337
31342
}
31338
31343
31339
31344
function checkThisType(node: ThisTypeNode) {
You can’t perform that action at this time.
0 commit comments