File: amdImportNotAsPrimaryExpression.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (88 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (4)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
=== tests/cases/conformance/externalModules/foo_1.ts ===
import foo = require("./foo_0");
>foo : typeof foo

// None of the below should cause a runtime dependency on foo_0
import f = foo.M1;
>f : any
>foo : typeof foo
>M1 : any

var i: f.I2;
>i : f.I2
>f : any
>I2 : f.I2

var x: foo.C1 = <{m1: number}>{};
>x : foo.C1
>foo : any
>C1 : foo.C1
><{m1: number}>{} : { m1: number; }
>m1 : number
>{} : {}

var y: typeof foo.C1.s1 = false;
>y : boolean
>foo.C1.s1 : boolean
>foo.C1 : typeof foo.C1
>foo : typeof foo
>C1 : typeof foo.C1
>s1 : boolean
>false : false

var z: foo.M1.I2;
>z : f.I2
>foo : any
>M1 : any
>I2 : f.I2

var e: number = <foo.E1>0;
>e : number
><foo.E1>0 : foo.E1
>foo : any
>E1 : foo.E1
>0 : 0

=== tests/cases/conformance/externalModules/foo_0.ts ===
export class C1 {
>C1 : C1

	m1 = 42;
>m1 : number
>42 : 42

	static s1 = true;
>s1 : boolean
>true : true
}

export interface I1 {
>I1 : I1

	name: string;
>name : string

	age: number;
>age : number
}

export module M1 {
>M1 : any

	export interface I2 {
>I2 : I2

		foo: string;
>foo : string
	}
}

export enum E1 {
>E1 : E1

	A,B,C
>A : E1.A
>B : E1.B
>C : E1.C
}