mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix issue in getTypeDefinitionAtPosition
This commit is contained in:
1 parent
d3c91e03cc
commit
178883a617
1 file changed
+1
-1
@@ -5093,7 +5093,7 @@ namespace ts {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (type.flags & TypeFlags.Union) {
|
||||
if (type.flags & TypeFlags.Union && !(type.flags & TypeFlags.Enum)) {
|
||||
const result: DefinitionInfo[] = [];
|
||||
forEach((<UnionType>type).types, t => {
|
||||
if (t.symbol) {
|
||||
|
||||
Reference in new issue
Block a user