1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
=== tests/cases/conformance/es2020/modules/0.ts ===
export const a = 1;
>a : 1
>1 : 1
export const b = 2;
>b : 2
>2 : 2
=== tests/cases/conformance/es2020/modules/1.ts ===
export * as ns from './0';
>ns : typeof import("tests/cases/conformance/es2020/modules/0")
ns.a;
>ns.a : any
>ns : any
>a : any
ns.b;
>ns.b : any
>ns : any
>b : any
=== tests/cases/conformance/es2020/modules/2.ts ===
import * as foo from './1'
>foo : typeof foo
foo.ns.a;
>foo.ns.a : 1
>foo.ns : typeof foo.ns
>foo : typeof foo
>ns : typeof foo.ns
>a : 1
foo.ns.b;
>foo.ns.b : 2
>foo.ns : typeof foo.ns
>foo : typeof foo
>ns : typeof foo.ns
>b : 2
|