mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Improve quick info display on properties belonging to all union contextual type members (#56088)
This commit is contained in:
1 parent
10db6524f1
commit
fd0936755b
2 files changed
+48
-1
No files matched your search
@@ -3282,7 +3282,9 @@ export function getPropertySymbolsFromContextualType(node: ObjectLiteralElementW
|
||||
// Bad discriminant -- do again without discriminating
|
||||
return mapDefined(contextualType.types, t => t.getProperty(name));
|
||||
}
|
||||
return discriminatedPropertySymbols;
|
||||
// by eliminating duplicates we might even end up with a single symbol
|
||||
// that helps with displaying better quick infos on properties of union types
|
||||
return deduplicate(discriminatedPropertySymbols, equateValues);
|
||||
}
|
||||
|
||||
function isArgumentOfElementAccessExpression(node: Node) {
|
||||
|
||||
Reference in new issue
Block a user