Skip to content

Commit

Permalink
improve tests for import/export type modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 9, 2020
1 parent 097f271 commit 9895b32
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tests/typescript_import_export/type-modifier.ts
@@ -1,5 +1,16 @@
import type { SomeThing } from "./some-module.js";
export type { SomeThing };
export type { A as B };
export type { B as C } from './a';
export type { foo } from 'bar';
export type * from 'bar';
export type { foo };

// this should be treated as a normal import statement
import type from './foo';

import type Foo from "./foo.js";
export type Foo;
import type { SomeThing } from "./some-module.js";
import type { foo, bar } from 'baz';
import type { foo as bar } from 'baz';
import type * as foo from './bar';
import type foo from 'bar';
import type foo, { bar } from 'bar';

0 comments on commit 9895b32

Please sign in to comment.