@sentzunhat/zacatl
Version:
A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.
22 lines • 685 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Layers = void 0;
const application_1 = require("./application");
const domain_1 = require("./domain");
const infrastructure_1 = require("./infrastructure");
class Layers {
constructor(config) {
const { application, domain, infrastructure } = config;
if (infrastructure) {
new infrastructure_1.Infrastructure(infrastructure);
}
if (domain) {
new domain_1.Domain(domain);
}
if (application) {
new application_1.Application(application);
}
}
}
exports.Layers = Layers;
//# sourceMappingURL=layers.js.map