Allow ! and ... as start-of-type tokens

Which allows the rest of the jsdoc types to be used in type argument
lists
This commit is contained in:
Nathan Shively-Sanders
2017-08-24 08:56:36 -07:00
parent a025192ac0
commit 377ac06050

View File

@@ -2722,6 +2722,8 @@ namespace ts {
case SyntaxKind.ObjectKeyword:
case SyntaxKind.AsteriskToken:
case SyntaxKind.QuestionToken:
case SyntaxKind.ExclamationToken:
case SyntaxKind.DotDotDotToken:
return true;
case SyntaxKind.MinusToken:
return lookAhead(nextTokenIsNumericLiteral);