mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Handle union properties completions on apparant types
This commit is contained in:
@@ -7916,7 +7916,7 @@ module ts {
|
||||
var symbols: Symbol[] = [];
|
||||
var name = symbol.name;
|
||||
forEach(getSymbolLinks(symbol).unionType.types, t => {
|
||||
symbols.push(getPropertyOfType(t, name));
|
||||
symbols.push(getPropertyOfType(getApparentType(t), name));
|
||||
});
|
||||
return symbols;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user