From 6d25a42fd99115ddf32c378a37a1d086174c470f Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 24 Mar 2016 22:04:44 -0700 Subject: [PATCH] Remove incorrect type predicate (could be true even when result is false) --- src/compiler/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 2966af3cb76..da33c18dfb8 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1412,7 +1412,7 @@ namespace ts { } // True if the given identifier, string literal, or number literal is the name of a declaration node - export function isDeclarationName(name: Node): name is Identifier | StringLiteral | LiteralExpression { + export function isDeclarationName(name: Node): boolean { if (name.kind !== SyntaxKind.Identifier && name.kind !== SyntaxKind.StringLiteral && name.kind !== SyntaxKind.NumericLiteral) { return false; }