mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
20 lines
322 B
TypeScript
20 lines
322 B
TypeScript
|
// @module: esnext, es2015, commonjs, amd, system, umd
|
||
|
// @filename: 0.ts
|
||
|
// @declaration: true
|
||
|
// @esModuleInterop: true
|
||
|
export const a = 1;
|
||
|
export const b = 2;
|
||
|
|
||
|
// @filename: 1.ts
|
||
|
export * as ns from './0';
|
||
|
ns.a;
|
||
|
ns.b;
|
||
|
let ns = {a: 1, b: 2}
|
||
|
ns.a;
|
||
|
ns.b;
|
||
|
|
||
|
// @filename: 2.ts
|
||
|
import * as foo from './1'
|
||
|
|
||
|
foo.ns.a;
|
||
|
foo.ns.b;
|