TypeScript/tests/baselines/reference/externalModuleResolution2.types
2014-08-28 12:40:58 -07:00

20 lines
303 B
Plaintext

=== tests/cases/compiler/consumer.ts ===
import x = require('./foo');
>x : typeof x
x.X // .ts should be picked
>x.X : number
>x : typeof x
>X : number
=== tests/cases/compiler/foo.ts ===
module M2 {
>M2 : typeof M2
export var X = 1;
>X : number
}
export = M2
>M2 : typeof M2