Properly attach alias symbol to readonly T[]
types
This commit is contained in:
parent
c9d407b52a
commit
cbcb59c95c
1 changed files with 1 additions and 1 deletions
|
@ -12438,7 +12438,7 @@ namespace ts {
|
|||
|
||||
function getAliasSymbolForTypeNode(node: TypeNode) {
|
||||
let host = node.parent;
|
||||
while (isParenthesizedTypeNode(host)) {
|
||||
while (isParenthesizedTypeNode(host) || isTypeOperatorNode(host) && host.operator === SyntaxKind.ReadonlyKeyword) {
|
||||
host = host.parent;
|
||||
}
|
||||
return isTypeAlias(host) ? getSymbolOfNode(host) : undefined;
|
||||
|
|
Loading…
Reference in a new issue