From 0d19023dc19122b9aa121c8e38401783fb528b15 Mon Sep 17 00:00:00 2001 From: Prateek Nayak <41796509+flowkraD@users.noreply.github.com> Date: Mon, 8 Oct 2018 19:10:12 +0530 Subject: [PATCH] Added ObjectKeyword check to isPartOfTypeNode The check for ObjectKeyword which seemed to be missing while checking for type of node was added to isPartOfTypeNode --- src/compiler/utilities.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 9c6d9002b3c..ae75290d56e 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -978,6 +978,7 @@ namespace ts { case SyntaxKind.StringKeyword: case SyntaxKind.BooleanKeyword: case SyntaxKind.SymbolKeyword: + case SyntaxKind.ObjectKeyword: case SyntaxKind.UndefinedKeyword: case SyntaxKind.NeverKeyword: return true;