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 d30c3dc commit ffa1ea7Copy full SHA for ffa1ea7
src/compiler/emitter.ts
100644
100755
@@ -1862,17 +1862,8 @@ namespace ts {
1862
}
1863
1864
function emitModuleDeclaration(node: ModuleDeclaration) {
1865
- if (node.flags & NodeFlags.GlobalAugmentation) {
1866
- if (!hasModifier(node, ModifierFlags.Ambient)) {
1867
- // Always emit a 'declare' keyword in case it wasn't provided by a factory function call.
1868
- write("declare ");
1869
- }
1870
- else {
1871
- emitModifiers(node, node.modifiers);
1872
1873
1874
1875
+ emitModifiers(node, node.modifiers);
+ if (~node.flags & NodeFlags.GlobalAugmentation) {
1876
write(node.flags & NodeFlags.Namespace ? "namespace " : "module ");
1877
1878
emit(node.name);
0 commit comments