Repository: sandersn/downlevel-dts (js)

Issue:
Incorrect downlevelling of `export * as foo from 'bar'`
### Input code:

```ts
export * as TSESTree from './ts-estree';
```

### Expected output:

```ts
import * as TSESTree from './ts-estree';
export { TSESTree };
```

### Actual output:

```ts
import * as TSESTree_1 from './ts-estree';
export { TSESTree_1 as TSESTree } from './ts-estree';
```


See also

Test input:

https://github.com/sandersn/downlevel-dts/blob/ca924f6fdb2abc875b6884dea541327c57fe443d/test/test.d.ts#L27-L28

Incorrect test output:

https://github.com/sandersn/downlevel-dts/blob/ca924f6fdb2abc875b6884dea541327c57fe443d/baselines/ts3.4/test.d.ts#L24-L26

Pull request description:
fix: correct downlevel of `export * as ns`
Fixes #41 

Patch:
diff --git a/index.js b/index.js
index 00c3ed7..b7485ae 100644
--- a/index.js
+++ b/index.js
@@ -138,8 +138,7 @@ function doTransform(checker, k) {
           ts.createExportDeclaration(
             undefined,
             undefined,
-            ts.createNamedExports([ts.createExportSpecifier(tempName, n.exportClause.name)]),
-            n.moduleSpecifier
+            ts.createNamedExports([ts.createExportSpecifier(tempName, n.exportClause.name)])
           )
         )
       ];


Test patch:
diff --git a/baselines/ts3.4/test.d.ts b/baselines/ts3.4/test.d.ts
index 3468baa..48acbe3 100644
--- a/baselines/ts3.4/test.d.ts
+++ b/baselines/ts3.4/test.d.ts
@@ -23,7 +23,7 @@ export namespace N {
 import { C as CD } from "./src/test";
 import * as rex_1 from "./src/test";
 //another comment
-export { rex_1 as rex } from "./src/test";
+export { rex_1 as rex };
 export interface E {
     a: number;
     b: number;