Skip to content

Commit 377ac06

Browse files
committed
Allow ! and ... as start-of-type tokens
Which allows the rest of the jsdoc types to be used in type argument lists
1 parent a025192 commit 377ac06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/parser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2722,6 +2722,8 @@ namespace ts {
27222722
case SyntaxKind.ObjectKeyword:
27232723
case SyntaxKind.AsteriskToken:
27242724
case SyntaxKind.QuestionToken:
2725+
case SyntaxKind.ExclamationToken:
2726+
case SyntaxKind.DotDotDotToken:
27252727
return true;
27262728
case SyntaxKind.MinusToken:
27272729
return lookAhead(nextTokenIsNumericLiteral);

0 commit comments

Comments
 (0)