TypeScript/tests/baselines/reference/externalModuleResolution.types
2014-08-15 14:37:48 -07:00

20 lines
305 B
Plaintext

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