Fix typo
This commit is contained in:
parent
c22a54fb95
commit
b336c693ee
|
@ -7858,7 +7858,7 @@ namespace ts {
|
|||
// and primitive types are removed by other type guards.
|
||||
const filteredType = getTypeWithFacts(type, TypeFacts.Discriminatable);
|
||||
if (filteredType !== type && filteredType.flags & TypeFlags.Union) {
|
||||
prop = getPropertyOfType(type, name);
|
||||
prop = getPropertyOfType(filteredType, name);
|
||||
}
|
||||
}
|
||||
if (prop && prop.flags & SymbolFlags.SyntheticProperty) {
|
||||
|
|
Loading…
Reference in a new issue