Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tsc/internal/ast/precedence.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ func GetTypeNodePrecedence(n *TypeNode) TypePrecedence {
return TypePrecedenceConditional
case KindJSDocOptionalType, KindJSDocVariadicType:
return TypePrecedenceJSDoc
case KindJSDocTypeExpression, KindJSDocNameReference, KindJSDocTypeLiteral, KindJSDocSignature:
return TypePrecedenceNonArray
case KindFunctionType, KindConstructorType:
return TypePrecedenceFunction
case KindUnionType:
Expand Down
Loading