28 lines
519 B
Text
28 lines
519 B
Text
=== tests/cases/compiler/consumer.ts ===
|
|
import e = require('./exporter');
|
|
>e : typeof e
|
|
|
|
export function w(): e.w { // Should be OK
|
|
>w : () => e.w
|
|
>e : unknown
|
|
>w : e.w
|
|
|
|
return new e.w();
|
|
>new e.w() : e.w
|
|
>e.w : typeof e.w
|
|
>e : typeof e
|
|
>w : typeof e.w
|
|
}
|
|
=== 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');
|
|
>w : typeof w
|
|
|