mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
// @Filename: /a.ts
|
|
class A { a!: string }
|
|
export type { A as default };
|
|
|
|
// @Filename: /b.ts
|
|
import A from './a';
|
|
import type { default as B } from './a';
|
|
export { A, B };
|
|
|
|
// @Filename: /c.ts
|
|
import * as types from './b';
|
|
export { types as default };
|
|
|
|
// @Filename: /d.ts
|
|
import types from './c';
|
|
new types.A();
|
|
new types.B();
|
|
const a: types.A = {};
|
|
const b: types.B = {};
|