2015-02-03 00:30:33 +01:00
|
|
|
//// [tests/cases/conformance/externalModules/exportAssignDottedName.ts] ////
|
|
|
|
|
|
|
|
//// [foo1.ts]
|
|
|
|
export function x(){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [foo2.ts]
|
|
|
|
import foo1 = require('./foo1');
|
2015-02-26 01:03:51 +01:00
|
|
|
export = foo1.x; // Ok
|
2015-02-03 00:30:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
//// [foo1.js]
|
|
|
|
function x() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
exports.x = x;
|
|
|
|
//// [foo2.js]
|
|
|
|
var foo1 = require('./foo1');
|
2015-02-26 01:03:51 +01:00
|
|
|
module.exports = foo1.x;
|