Skip to content

Commit f4b8adc

Browse files
committed
Comment copy edit
1 parent 8ea4ec9 commit f4b8adc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12613,8 +12613,8 @@ namespace ts {
1261312613
else if (grandParent.kind === SyntaxKind.TypeParameter && grandParent.parent.kind === SyntaxKind.MappedType) {
1261412614
inferences = append(inferences, keyofConstraintType);
1261512615
}
12616-
// When an 'infer T' declaration is the template of a mapped type, and that mapped type if the extends
12617-
// clause of a conditional whose check type is also a mapped type, give it the constraint of the template
12616+
// When an 'infer T' declaration is the template of a mapped type, and that mapped type is the extends
12617+
// clause of a conditional whose check type is also a mapped type, give it a constraint equal to the template
1261812618
// of the check type's mapped type
1261912619
else if (grandParent.kind === SyntaxKind.MappedType && (grandParent as MappedTypeNode).type &&
1262012620
skipParentheses((grandParent as MappedTypeNode).type!) === declaration.parent && grandParent.parent.kind === SyntaxKind.ConditionalType &&

0 commit comments

Comments
 (0)