qcobjects
Version:
QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.
19 lines (18 loc) • 665 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.View = void 0;
const getType_1 = require("./getType");
const InheritClass_1 = require("./InheritClass");
const Package_1 = require("./Package");
class View extends InheritClass_1.InheritClass {
constructor({ component = undefined, dependencies = [] }) {
super({ component, dependencies });
if (typeof this.component === "undefined" || this.component === "null") {
throw Error(`${(0, getType_1.__getType__)(this)} must be called with a component`);
}
}
}
exports.View = View;
(0, Package_1.Package)("com.qcobjects.views", [
View
]);