49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
//// [file1.ts]
|
|
import {c} from "module"
|
|
import {c2} from "module"
|
|
import * as ns from "module"
|
|
|
|
class C extends c2.C {
|
|
}
|
|
|
|
let x = new c();
|
|
let y = ns.value;
|
|
|
|
export {c1} from "module";
|
|
export var z = x;
|
|
|
|
//// [file1.js]
|
|
"use strict";
|
|
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
return function (d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.z = exports.c1 = void 0;
|
|
var module_1 = require("module");
|
|
var module_2 = require("module");
|
|
var ns = require("module");
|
|
var C = /** @class */ (function (_super) {
|
|
__extends(C, _super);
|
|
function C() {
|
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
}
|
|
return C;
|
|
}(module_2.c2.C));
|
|
var x = new module_1.c();
|
|
var y = ns.value;
|
|
var module_3 = require("module");
|
|
Object.defineProperty(exports, "c1", { enumerable: true, get: function () { return module_3.c1; } });
|
|
exports.z = x;
|