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 86295fb commit b267256Copy full SHA for b267256
src/compiler/checker.ts
@@ -22627,8 +22627,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
22627
}
22628
let i = 0;
22629
for (const type of target.types) {
22630
- const targetType = getTypeOfPropertyOfType(type, propertyName);
22631
if (discriminable[i] === undefined) {
+ const targetType = getTypeOfPropertyOfType(type, propertyName);
22632
discriminable[i] = !!(targetType && related(getDiscriminatingType(), targetType));
22633
22634
i++;
0 commit comments