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