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 46bb322 commit cf54cc5Copy full SHA for cf54cc5
src/compiler/checker.ts
@@ -23112,9 +23112,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
23112
for (const constituent of (target as UnionType).types) {
23113
const constituentPropType = getTypeOfPropertyOfType(constituent, prop.escapedName);
23114
if (constituentPropType) {
23115
- forEachType(constituentPropType, t => {
23116
- targetDiscriminantTypes.push(t);
23117
- });
+ forEachType(constituentPropType, t => targetDiscriminantTypes.push(t));
23118
}
23119
23120
const targetDiscriminantUnion = getUnionType(targetDiscriminantTypes);
0 commit comments