UNPKG

@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.

20 lines (14 loc) 419 B
import { AbstractArchitecture } from "../architecture"; export type ConfigInfrastructure = { repositories: Array<new () => unknown>; }; export class Infrastructure extends AbstractArchitecture { private config: ConfigInfrastructure; constructor(config: ConfigInfrastructure) { super(); this.config = config; } public start(): void { this.registerDependencies(this.config.repositories); } }