Parsing:Allow QuestionToken as start of type
This commit is contained in:
parent
49676c58f3
commit
71c5b1b354
|
@ -2721,6 +2721,7 @@ namespace ts {
|
|||
case SyntaxKind.FalseKeyword:
|
||||
case SyntaxKind.ObjectKeyword:
|
||||
case SyntaxKind.AsteriskToken:
|
||||
case SyntaxKind.QuestionToken:
|
||||
return true;
|
||||
case SyntaxKind.MinusToken:
|
||||
return lookAhead(nextTokenIsNumericLiteral);
|
||||
|
|
Loading…
Reference in a new issue