TypeScript/tests/baselines/reference/externalModuleResolution.types

21 lines
552 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/consumer.ts ===
import x = require('./foo');
2015-04-13 23:01:57 +02:00
>x : typeof x, Symbol(x, Decl(consumer.ts, 0, 0))
2014-08-15 23:33:16 +02:00
x.Y // .ts should be picked
2015-04-13 23:01:57 +02:00
>x.Y : number, Symbol(x.Y, Decl(foo.ts, 1, 14))
>x : typeof x, Symbol(x, Decl(consumer.ts, 0, 0))
>Y : number, Symbol(x.Y, Decl(foo.ts, 1, 14))
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/foo.ts ===
module M2 {
2015-04-13 23:01:57 +02:00
>M2 : typeof M2, Symbol(M2, Decl(foo.ts, 0, 0))
2014-08-15 23:33:16 +02:00
export var Y = 1;
2015-04-13 23:01:57 +02:00
>Y : number, Symbol(Y, Decl(foo.ts, 1, 14))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
export = M2
2015-04-13 23:01:57 +02:00
>M2 : typeof M2, Symbol(M2, Decl(foo.ts, 0, 0))
2014-08-15 23:33:16 +02:00