From 377ac06050e4270c19989ed5c58f808d3642a0d7 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Thu, 24 Aug 2017 08:56:36 -0700 Subject: [PATCH] Allow ! and ... as start-of-type tokens Which allows the rest of the jsdoc types to be used in type argument lists --- src/compiler/parser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 7486c7541be..360887f0b67 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -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);