31 lines
601 B
Plaintext
31 lines
601 B
Plaintext
=== tests/cases/conformance/externalModules/foo3.ts ===
|
|
import foo2 = require('./foo2');
|
|
>foo2 : () => boolean
|
|
|
|
var x = foo2(); // should be boolean
|
|
>x : boolean
|
|
>foo2() : boolean
|
|
>foo2 : () => boolean
|
|
|
|
=== tests/cases/conformance/externalModules/foo1.ts ===
|
|
export function x(){
|
|
>x : () => boolean
|
|
|
|
return true;
|
|
>true : true
|
|
}
|
|
|
|
=== tests/cases/conformance/externalModules/foo2.ts ===
|
|
import foo1 = require('./foo1');
|
|
>foo1 : typeof foo1
|
|
|
|
var x = foo1.x;
|
|
>x : () => boolean
|
|
>foo1.x : () => boolean
|
|
>foo1 : typeof foo1
|
|
>x : () => boolean
|
|
|
|
export = x;
|
|
>x : () => boolean
|
|
|