Handle readonly arrays and tuples in decorator metadata serialization
This commit is contained in:
parent
151fac913c
commit
ff42c3d198
1 changed files with 6 additions and 0 deletions
|
@ -1934,6 +1934,12 @@ namespace ts {
|
|||
case SyntaxKind.ConditionalType:
|
||||
return serializeTypeList([(<ConditionalTypeNode>node).trueType, (<ConditionalTypeNode>node).falseType]);
|
||||
|
||||
case SyntaxKind.TypeOperator:
|
||||
if ((<TypeOperatorNode>node).operator === SyntaxKind.ReadonlyKeyword) {
|
||||
return serializeTypeNode((<TypeOperatorNode>node).type);
|
||||
}
|
||||
break;
|
||||
|
||||
case SyntaxKind.TypeQuery:
|
||||
case SyntaxKind.TypeOperator:
|
||||
case SyntaxKind.IndexedAccessType:
|
||||
|
|
Loading…
Reference in a new issue