17 lines
384 B
Plaintext
17 lines
384 B
Plaintext
|
=== tests/cases/compiler/exportAssignmentFunction_B.ts ===
|
||
|
import fooFunc = require("exportAssignmentFunction_A");
|
||
|
>fooFunc : () => number
|
||
|
|
||
|
var n: number = fooFunc();
|
||
|
>n : number
|
||
|
>fooFunc() : number
|
||
|
>fooFunc : () => number
|
||
|
|
||
|
=== tests/cases/compiler/exportAssignmentFunction_A.ts ===
|
||
|
function foo() { return 0; }
|
||
|
>foo : () => number
|
||
|
|
||
|
export = foo;
|
||
|
>foo : () => number
|
||
|
|