Skip to content

Commit 6d25a42

Browse files
committed
Remove incorrect type predicate (could be true even when result is false)
1 parent ed5002c commit 6d25a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ namespace ts {
14121412
}
14131413

14141414
// True if the given identifier, string literal, or number literal is the name of a declaration node
1415-
export function isDeclarationName(name: Node): name is Identifier | StringLiteral | LiteralExpression {
1415+
export function isDeclarationName(name: Node): boolean {
14161416
if (name.kind !== SyntaxKind.Identifier && name.kind !== SyntaxKind.StringLiteral && name.kind !== SyntaxKind.NumericLiteral) {
14171417
return false;
14181418
}

0 commit comments

Comments
 (0)