25 lines
545 B
JavaScript
25 lines
545 B
JavaScript
|
//// [amdModuleName2.ts]
|
||
|
///<amd-module name='FirstModuleName'/>
|
||
|
///<amd-module name='SecondModuleName'/>
|
||
|
class Foo {
|
||
|
x: number;
|
||
|
constructor() {
|
||
|
this.x = 5;
|
||
|
}
|
||
|
}
|
||
|
export = Foo;
|
||
|
|
||
|
|
||
|
//// [amdModuleName2.js]
|
||
|
define("SecondModuleName", ["require", "exports"], function (require, exports) {
|
||
|
///<amd-module name='FirstModuleName'/>
|
||
|
///<amd-module name='SecondModuleName'/>
|
||
|
var Foo = (function () {
|
||
|
function Foo() {
|
||
|
this.x = 5;
|
||
|
}
|
||
|
return Foo;
|
||
|
})();
|
||
|
return Foo;
|
||
|
});
|