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