17 lines
397 B
Text
17 lines
397 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
|
|
>0 : number
|
|
|
|
export = foo;
|
|
>foo : () => number
|
|
|