Comment copy edit

This commit is contained in:
Wesley Wigham 2021-04-21 12:51:36 -07:00
parent 8ea4ec9496
commit f4b8adca6a
No known key found for this signature in database
GPG Key ID: D59F87F60C5400C9

View File

@ -12613,8 +12613,8 @@ namespace ts {
else if (grandParent.kind === SyntaxKind.TypeParameter && grandParent.parent.kind === SyntaxKind.MappedType) {
inferences = append(inferences, keyofConstraintType);
}
// When an 'infer T' declaration is the template of a mapped type, and that mapped type if the extends
// clause of a conditional whose check type is also a mapped type, give it the constraint of the template
// When an 'infer T' declaration is the template of a mapped type, and that mapped type is the extends
// clause of a conditional whose check type is also a mapped type, give it a constraint equal to the template
// of the check type's mapped type
else if (grandParent.kind === SyntaxKind.MappedType && (grandParent as MappedTypeNode).type &&
skipParentheses((grandParent as MappedTypeNode).type!) === declaration.parent && grandParent.parent.kind === SyntaxKind.ConditionalType &&