Skip to content

Commit 4c6b623

Browse files
committed
enhance comment
1 parent 394a636 commit 4c6b623

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
@@ -13550,8 +13550,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1355013550
const limitedConstraint = getLimitedConstraint(type);
1355113551
for (const prop of getPropertiesOfType(type.source)) {
1355213552
// In case of a reverse mapped type with an intersection constraint, if we were able to
13553-
// extract the filtering type literals we skip those properties, because they wouldn't
13554-
// get through the application of the mapped type anyway
13553+
// extract the filtering type literals we skip those properties that are not assignable to them,
13554+
// because the extra properties wouldn't get through the application of the mapped type anyway
1355513555
if (limitedConstraint) {
1355613556
const propertyNameType = getLiteralTypeFromProperty(prop, TypeFlags.StringOrNumberLiteralOrUnique);
1355713557
if (!isTypeAssignableTo(propertyNameType, limitedConstraint)) {

0 commit comments

Comments
 (0)