mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Strip literal freshness from type queries (#25471)
* Strip literal freshness from type queries * Rename to fix typo
This commit is contained in:
1 parent
ea73ee7fd7
commit
547856a11d
5 files changed
+155
-1
No files matched your search
@@ -8165,7 +8165,7 @@ namespace ts {
|
||||
// The expression is processed as an identifier expression (section 4.3)
|
||||
// or property access expression(section 4.10),
|
||||
// the widened type(section 3.9) of which becomes the result.
|
||||
links.resolvedType = getWidenedType(checkExpression(node.exprName));
|
||||
links.resolvedType = getRegularTypeOfLiteralType(getWidenedType(checkExpression(node.exprName)));
|
||||
}
|
||||
return links.resolvedType;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user