Skip to content

Commit 0d19023

Browse files
author
Prateek Nayak
authored
Added ObjectKeyword check to isPartOfTypeNode
The check for ObjectKeyword which seemed to be missing while checking for type of node was added to isPartOfTypeNode
1 parent 8474949 commit 0d19023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ namespace ts {
978978
case SyntaxKind.StringKeyword:
979979
case SyntaxKind.BooleanKeyword:
980980
case SyntaxKind.SymbolKeyword:
981+
case SyntaxKind.ObjectKeyword:
981982
case SyntaxKind.UndefinedKeyword:
982983
case SyntaxKind.NeverKeyword:
983984
return true;

0 commit comments

Comments
 (0)