24 lines
412 B
TypeScript
24 lines
412 B
TypeScript
//// [tests/cases/conformance/externalModules/exportAssignDottedName.ts] ////
|
|
|
|
//// [foo1.ts]
|
|
export function x(){
|
|
return true;
|
|
}
|
|
|
|
//// [foo2.ts]
|
|
import foo1 = require('./foo1');
|
|
export = foo1.x; // Ok
|
|
|
|
|
|
//// [foo1.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
function x() {
|
|
return true;
|
|
}
|
|
exports.x = x;
|
|
//// [foo2.js]
|
|
"use strict";
|
|
var foo1 = require("./foo1");
|
|
module.exports = foo1.x;
|