swc/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.ts

23 lines
378 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 default from './0';
// @filename: 11.ts
import * as ns from './0';
export default ns;
// @filename: 2.ts
import foo from './1'
import foo1 from './11'
foo.a;
foo1.a;
foo.b;
foo1.b;