TypeScript/tests/baselines/reference/externalModuleResolution.types

20 lines
303 B
Plaintext
Raw Normal View History

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.Y // .ts should be picked
>x.Y : number
2014-08-25 19:36:12 +02:00
>x : typeof x
2014-08-15 23:33:16 +02:00
>Y : 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 Y = 1;
>Y : number
}
export = M2
>M2 : typeof M2