File: exportAsNamespace1%28module%3Dumd%29.types

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (41 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (36)
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