Remove incorrect type predicate (could be true even when result is false)

This commit is contained in:
Anders Hejlsberg 2016-03-24 22:04:44 -07:00
parent ed5002c81a
commit 6d25a42fd9

View File

@ -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;
}