We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 180b94d commit d98857aCopy full SHA for d98857a
1 file changed
src/compiler/checker.ts
@@ -23110,7 +23110,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
23110
for (const constituent of (target as UnionType).types) {
23111
const constituentPropType = getTypeOfPropertyOfType(constituent, prop.escapedName);
23112
if (constituentPropType) {
23113
- forEachType(constituentPropType, t => { targetDiscriminantTypes.push(t); });
+ forEachType(constituentPropType, t => {
23114
+ targetDiscriminantTypes.push(t);
23115
+ });
23116
}
23117
23118
const targetDiscriminantUnion = getUnionType(targetDiscriminantTypes);
0 commit comments