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 @@ -13550,8 +13550,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
13550
13550
const limitedConstraint = getLimitedConstraint(type);
13551
13551
for (const prop of getPropertiesOfType(type.source)) {
13552
13552
// 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
13555
13555
if (limitedConstraint) {
13556
13556
const propertyNameType = getLiteralTypeFromProperty(prop, TypeFlags.StringOrNumberLiteralOrUnique);
13557
13557
if (!isTypeAssignableTo(propertyNameType, limitedConstraint)) {
You can’t perform that action at this time.
0 commit comments