Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

Commit 46a3c99

Browse files
authored
Revert "feat: add optional global flag to TSModuleDeclaration for global augmentations (#38)"
This reverts commit 13e2a24.
1 parent 13e2a24 commit 46a3c99

File tree

4 files changed

+0
-453
lines changed

4 files changed

+0
-453
lines changed

src/convert.ts

-3
Original file line numberDiff line numberDiff line change
@@ -2527,9 +2527,6 @@ export default function convert(config: ConvertConfig): ESTreeNode | null {
25272527
}
25282528
// apply modifiers first...
25292529
applyModifiersToResult((node as any).modifiers);
2530-
if (node.flags & ts.NodeFlags.GlobalAugmentation) {
2531-
result.global = true;
2532-
}
25332530
// ...then check for exports
25342531
result = nodeUtils.fixExports(node, result as any, ast);
25352532
break;

src/temp-types-based-on-js-source.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export interface ESTreeNode {
3232
decorators?: any;
3333
const?: boolean;
3434
declare?: boolean;
35-
global?: boolean;
3635
modifiers?: any;
3736
body?: any;
3837
params?: any;

tests/fixtures/typescript/namespaces-and-modules/global-module-declaration.src.ts

-8
This file was deleted.

0 commit comments

Comments
 (0)