16 lines
384 B
Text
16 lines
384 B
Text
=== 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
|
|
|