We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
readonly T[]
1 parent c9d407b commit cbcb59cCopy full SHA for cbcb59c
src/compiler/checker.ts
@@ -12438,7 +12438,7 @@ namespace ts {
12438
12439
function getAliasSymbolForTypeNode(node: TypeNode) {
12440
let host = node.parent;
12441
- while (isParenthesizedTypeNode(host)) {
+ while (isParenthesizedTypeNode(host) || isTypeOperatorNode(host) && host.operator === SyntaxKind.ReadonlyKeyword) {
12442
host = host.parent;
12443
}
12444
return isTypeAlias(host) ? getSymbolOfNode(host) : undefined;
0 commit comments