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
|
=== tests/cases/compiler/constAndNS.ts ===
type A = number;
>A : number
declare const Q: number;
>Q : number
declare namespace Q {
export { A };
>A : any
}
declare const try1: Q.A;
>try1 : number
>Q : any
declare namespace Q2 {
>Q2 : typeof Q2
export { Q }
>Q : number
}
declare const try2: Q2.Q.A;
>try2 : number
>Q2 : any
>Q : any
declare namespace Q3 {
export {A as B};
>A : any
>B : any
}
declare const try3: Q3.B;
>try3 : number
>Q3 : any
declare namespace Q4 {
>Q4 : typeof Q4
export { Q as default };
>Q : number
>default : number
}
declare const try4: Q4.default.A;
>try4 : number
>Q4 : any
>default : any
export {};
=== tests/cases/compiler/circular.ts ===
declare namespace NS1 {
export { NS2 };
>NS2 : any
}
declare namespace NS2 {
export { NS1 };
>NS1 : any
}
export {};
=== tests/cases/compiler/circularWithUses.ts ===
type A = string;
>A : string
type B = number;
>B : number
declare namespace NS1 {
export { NS2, A };
>NS2 : any
>A : any
}
declare namespace NS2 {
export { NS1, B };
>NS1 : any
>B : any
}
export {};
declare const try1: NS1.A;
>try1 : string
>NS1 : any
declare const try2: NS2.B;
>try2 : number
>NS2 : any
declare const try3: NS1.NS2.B;
>try3 : number
>NS1 : any
>NS2 : any
declare const try4: NS2.NS1.A;
>try4 : string
>NS2 : any
>NS1 : any
declare const try5: NS1.NS2.NS1.A;
>try5 : string
>NS1 : any
>NS2 : any
>NS1 : any
declare const try6: NS2.NS1.NS2.B;
>try6 : number
>NS2 : any
>NS1 : any
>NS2 : any
|