Skip to content

Commit b336c69

Browse files
committed
Fix typo
1 parent c22a54f commit b336c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7858,7 +7858,7 @@ namespace ts {
78587858
// and primitive types are removed by other type guards.
78597859
const filteredType = getTypeWithFacts(type, TypeFacts.Discriminatable);
78607860
if (filteredType !== type && filteredType.flags & TypeFlags.Union) {
7861-
prop = getPropertyOfType(type, name);
7861+
prop = getPropertyOfType(filteredType, name);
78627862
}
78637863
}
78647864
if (prop && prop.flags & SymbolFlags.SyntheticProperty) {

0 commit comments

Comments
 (0)