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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofAnExportedType.ts ===
export var x = 1;
>x : number
>1 : 1
export var r1: typeof x;
>r1 : number
>x : number
export var y = { foo: '' };
>y : { foo: string; }
>{ foo: '' } : { foo: string; }
>foo : string
>'' : ""
export var r2: typeof y;
>r2 : { foo: string; }
>y : { foo: string; }
export class C {
>C : C
foo: string;
>foo : string
}
export var c: C;
>c : C
var c2: C;
>c2 : C
export var r3: typeof C;
>r3 : typeof C
>C : typeof C
export var r4: typeof c;
>r4 : C
>c : C
export var r4b: typeof c2;
>r4b : C
>c2 : C
export interface I {
foo: string;
>foo : string
}
export var i: I;
>i : I
var i2: I;
>i2 : I
export var r5: typeof i;
>r5 : I
>i : I
export var r5: typeof i2;
>r5 : I
>i2 : I
export module M {
>M : typeof M
export var foo = '';
>foo : string
>'' : ""
export class C {
>C : C
foo: string;
>foo : string
}
}
export var r6: typeof M;
>r6 : typeof M
>M : typeof M
export var r7: typeof M.foo;
>r7 : string
>M.foo : string
>M : typeof M
>foo : string
export import Z = M;
>Z : typeof M
>M : typeof M
export var r8: typeof Z;
>r8 : typeof M
>Z : typeof M
export var r9: typeof Z.foo;
>r9 : string
>Z.foo : string
>Z : typeof M
>foo : string
export enum E {
>E : E
A
>A : E.A
}
export var r10: typeof E;
>r10 : typeof E
>E : typeof E
export var r11: typeof E.A;
>r11 : E
>E.A : E
>E : typeof E
>A : E
export var r12: typeof r12;
>r12 : any
>r12 : any
export function foo() { }
>foo : typeof foo
export module foo {
>foo : typeof foo
export var y = 1;
>y : number
>1 : 1
export class C {
>C : C
foo: string;
>foo : string
}
}
export var r13: typeof foo;
>r13 : typeof foo
>foo : typeof foo
|