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