2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/consumer.ts ===
|
|
|
|
import e = require('./exporter');
|
2014-08-28 21:40:58 +02:00
|
|
|
>e : typeof e
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function w(): e.w { // Should be OK
|
2014-08-28 21:52:44 +02:00
|
|
|
>w : () => e.w
|
2014-08-28 21:40:58 +02:00
|
|
|
>e : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>w : e.w
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return new e.w();
|
2014-08-25 19:36:12 +02:00
|
|
|
>new e.w() : e.w
|
|
|
|
>e.w : typeof e.w
|
|
|
|
>e : typeof e
|
|
|
|
>w : typeof e.w
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
=== tests/cases/compiler/w1.ts ===
|
|
|
|
|
|
|
|
export = Widget1
|
|
|
|
>Widget1 : Widget1
|
|
|
|
|
|
|
|
class Widget1 { name = 'one'; }
|
|
|
|
>Widget1 : Widget1
|
|
|
|
>name : string
|
|
|
|
|
|
|
|
=== tests/cases/compiler/exporter.ts ===
|
|
|
|
export import w = require('./w1');
|
2014-08-28 21:40:58 +02:00
|
|
|
>w : typeof w
|
2014-08-15 23:33:16 +02:00
|
|
|
|