Ensure void return in forEachType

This commit is contained in:
Anders Hejlsberg 2017-10-26 14:56:43 -07:00
parent 6023433fe3
commit aa6b438eba

View File

@ -10472,7 +10472,9 @@ namespace ts {
if (isObjectLiteralType(type)) {
const prop = getPropertyOfObjectType(type, context.propertyName);
if (prop) {
forEachType(getTypeOfSymbol(prop), t => siblings.push(t));
forEachType(getTypeOfSymbol(prop), t => {
siblings.push(t);
});
}
}
}