Skip to content

Commit 427e6ed

Browse files
committed
Tidy isAmbientModule
1 parent e8fb587 commit 427e6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ namespace ts {
425425
}
426426

427427
export function isAmbientModule(node: Node): boolean {
428-
return node && node.kind === SyntaxKind.ModuleDeclaration &&
429-
((<ModuleDeclaration>node).name.kind === SyntaxKind.StringLiteral || isGlobalScopeAugmentation(<ModuleDeclaration>node));
428+
return node && isModuleDeclaration(node) &&
429+
(node.name.kind === SyntaxKind.StringLiteral || isGlobalScopeAugmentation(node));
430430
}
431431

432432
export function isModuleWithStringLiteralName(node: Node): node is ModuleDeclaration {

0 commit comments

Comments
 (0)