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 e8fb587 commit 427e6edCopy full SHA for 427e6ed
src/compiler/utilities.ts
@@ -425,8 +425,8 @@ namespace ts {
425
}
426
427
export function isAmbientModule(node: Node): boolean {
428
- return node && node.kind === SyntaxKind.ModuleDeclaration &&
429
- ((<ModuleDeclaration>node).name.kind === SyntaxKind.StringLiteral || isGlobalScopeAugmentation(<ModuleDeclaration>node));
+ return node && isModuleDeclaration(node) &&
+ (node.name.kind === SyntaxKind.StringLiteral || isGlobalScopeAugmentation(node));
430
431
432
export function isModuleWithStringLiteralName(node: Node): node is ModuleDeclaration {
0 commit comments