From 9895b327f24f723570fa261a82d2f9b5da899a10 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Mon, 9 Mar 2020 23:31:42 +0200 Subject: [PATCH] improve tests for import/export type modifier --- tests/typescript_import_export/type-modifier.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/typescript_import_export/type-modifier.ts b/tests/typescript_import_export/type-modifier.ts index 85727b127fb3..a613d087c00a 100644 --- a/tests/typescript_import_export/type-modifier.ts +++ b/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';