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 @@ -12613,8 +12613,8 @@ namespace ts {
12613
12613
else if (grandParent.kind === SyntaxKind.TypeParameter && grandParent.parent.kind === SyntaxKind.MappedType) {
12614
12614
inferences = append(inferences, keyofConstraintType);
12615
12615
}
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
12618
12618
// of the check type's mapped type
12619
12619
else if (grandParent.kind === SyntaxKind.MappedType && (grandParent as MappedTypeNode).type &&
12620
12620
skipParentheses((grandParent as MappedTypeNode).type!) === declaration.parent && grandParent.parent.kind === SyntaxKind.ConditionalType &&
You can’t perform that action at this time.
0 commit comments