We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5002c commit 6d25a42Copy full SHA for 6d25a42
src/compiler/utilities.ts
@@ -1412,7 +1412,7 @@ namespace ts {
1412
}
1413
1414
// 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 {
+ export function isDeclarationName(name: Node): boolean {
1416
if (name.kind !== SyntaxKind.Identifier && name.kind !== SyntaxKind.StringLiteral && name.kind !== SyntaxKind.NumericLiteral) {
1417
return false;
1418
0 commit comments