27 lines
526 B
Text
27 lines
526 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 : any
|
|
>w : e.w
|
|
|
|
return {name: 'value' };
|
|
>{name: 'value' } : { name: string; }
|
|
>name : string
|
|
>'value' : string
|
|
}
|
|
=== tests/cases/compiler/w1.ts ===
|
|
|
|
export = Widget1
|
|
>Widget1 : Widget1
|
|
|
|
interface Widget1 { name: string; }
|
|
>Widget1 : Widget1
|
|
>name : string
|
|
|
|
=== tests/cases/compiler/exporter.ts ===
|
|
export import w = require('./w1');
|
|
>w : any
|
|
|