32 lines
437 B
JavaScript
32 lines
437 B
JavaScript
|
//// [es6-declaration-amd.ts]
|
||
|
|
||
|
class A
|
||
|
{
|
||
|
constructor ()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public B()
|
||
|
{
|
||
|
return 42;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [es6-declaration-amd.js]
|
||
|
var A = (function () {
|
||
|
function A() {
|
||
|
}
|
||
|
A.prototype.B = function () {
|
||
|
return 42;
|
||
|
};
|
||
|
return A;
|
||
|
})();
|
||
|
//# sourceMappingURL=es6-declaration-amd.js.map
|
||
|
|
||
|
//// [es6-declaration-amd.d.ts]
|
||
|
declare class A {
|
||
|
constructor();
|
||
|
B(): number;
|
||
|
}
|