From f4b8adca6ad01f2f1694287792636ea710436ea7 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 21 Apr 2021 12:51:36 -0700 Subject: [PATCH] Comment copy edit --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 155f4d6c657..3cc7ff57f8c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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 &&