UNPKG

node-ts-architecture-module

Version:
17 lines 691 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const inversify_1 = require("inversify"); const CommandBus_1 = require("./CommandBus/CommandBus"); const QueryBus_1 = require("./QueryBus/QueryBus"); const aliases = { ICommandBus: Symbol.for('ICommandBus'), IQueryBus: Symbol.for('IQueryBus'), }; const architectureModule = new inversify_1.ContainerModule((bind) => { bind(CommandBus_1.default).toSelf(); bind(aliases.ICommandBus).to(CommandBus_1.default); bind(QueryBus_1.default).toSelf(); bind(aliases.IQueryBus).to(QueryBus_1.default); }); exports.architectureModule = architectureModule; //# sourceMappingURL=architecture.config.js.map