We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55153b0 commit 342f700Copy full SHA for 342f700
src/compiler/checker.ts
@@ -14558,9 +14558,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
14558
constraint = getConstraintOfTypeParameter(typeVariable);
14559
}
14560
else {
14561
- const modifiersConstraint = getConstraintOfType(getModifiersTypeFromMappedType(type));
14562
- if (modifiersConstraint) {
14563
- constraint = getApparentType(modifiersConstraint);
+ const modifiersType = getModifiersTypeFromMappedType(type);
+ if (modifiersType) {
+ constraint = getApparentType(getConstraintOfType(modifiersType) || modifiersType);
14564
14565
14566
if (constraint && everyType(constraint, isArrayOrTupleType)) {
0 commit comments