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

16 lines
262 B
TypeScript
Raw Normal View History

// @module: esnext, es2015, commonjs, amd, system, umd
// @filename: 0.ts
// @declaration: true
export const a = 1;
export const b = 2;
// @filename: 1.ts
export * as ns from './0';
ns.a;
ns.b;
// @filename: 2.ts
import * as foo from './1'
foo.ns.a;
foo.ns.b;