TypeScript/tests/baselines/reference/moduleNoneOutFile.js
2018-09-24 16:12:24 -04:00

33 lines
1 KiB
TypeScript

//// [tests/cases/compiler/moduleNoneOutFile.ts] ////
//// [first.ts]
class Foo {}
//// [second.ts]
class Bar extends Foo {}
//// [bundle.js]
var Foo = /** @class */ (function () {
function Foo() {
}
return Foo;
}());
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var Bar = /** @class */ (function (_super) {
__extends(Bar, _super);
function Bar() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Bar;
}(Foo));