From 55852c495e85784c384514cfbb31ee7733776338 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 17 Dec 2018 15:52:32 -0800 Subject: [PATCH] Remove duplicate function from checker --- src/compiler/checker.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 356ddc2a28e..9c802bb9b82 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -7158,7 +7158,7 @@ namespace ts { return list.some(property => { const name = property.name && getTextOfPropertyName(property.name); const expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name); - return !!expected && typeIsLiteralType(expected) && !isTypeIdenticalTo(getTypeOfNode(property), expected); + return !!expected && isLiteralType(expected) && !isTypeIdenticalTo(getTypeOfNode(property), expected); }); } @@ -30937,8 +30937,4 @@ namespace ts { export const LibraryManagedAttributes = "LibraryManagedAttributes" as __String; // tslint:enable variable-name } - - function typeIsLiteralType(type: Type): type is LiteralType { - return !!(type.flags & TypeFlags.Literal); - } }