25 lines
645 B
TypeScript
25 lines
645 B
TypeScript
//// [tests/cases/compiler/exportAssignmentInternalModule.ts] ////
|
|
|
|
//// [exportAssignmentInternalModule_A.ts]
|
|
module M {
|
|
export var x;
|
|
}
|
|
|
|
export = M;
|
|
|
|
//// [exportAssignmentInternalModule_B.ts]
|
|
import modM = require("exportAssignmentInternalModule_A");
|
|
|
|
var n: number = modM.x;
|
|
|
|
//// [exportAssignmentInternalModule_A.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
var M;
|
|
(function (M) {
|
|
})(M || (M = {}));
|
|
return M;
|
|
});
|
|
//// [exportAssignmentInternalModule_B.js]
|
|
define(["require", "exports", "exportAssignmentInternalModule_A"], function (require, exports, modM) {
|
|
var n = modM.x;
|
|
});
|