2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/consumer.ts ===
|
|
|
|
import x = require('./foo');
|
2014-08-28 21:40:58 +02:00
|
|
|
>x : typeof x
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.X // .ts should be picked
|
|
|
|
>x.X : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>x : typeof x
|
2014-08-15 23:33:16 +02:00
|
|
|
>X : number
|
|
|
|
|
|
|
|
=== tests/cases/compiler/foo.ts ===
|
|
|
|
module M2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M2 : typeof M2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var X = 1;
|
|
|
|
>X : number
|
|
|
|
}
|
|
|
|
export = M2
|
|
|
|
>M2 : typeof M2
|
|
|
|
|