UNPKG

@robotlegsjs/core

Version:

An architecture-based IoC framework for JavaScript/TypeScript

30 lines 1.44 kB
"use strict"; // ------------------------------------------------------------------------------ // Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved. // // NOTICE: You are permitted to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ------------------------------------------------------------------------------ Object.defineProperty(exports, "__esModule", { value: true }); exports.EventCommandMapExtension = void 0; var IEventCommandMap_1 = require("./api/IEventCommandMap"); var EventCommandMap_1 = require("./impl/EventCommandMap"); /** * The Event Command Map allows you to bind Events to Commands */ var EventCommandMapExtension = /** @class */ (function () { function EventCommandMapExtension() { } /*============================================================================*/ /* Public Functions */ /*============================================================================*/ /** * @inheritDoc */ EventCommandMapExtension.prototype.extend = function (context) { context.injector.bind(IEventCommandMap_1.IEventCommandMap).to(EventCommandMap_1.EventCommandMap).inSingletonScope(); }; return EventCommandMapExtension; }()); exports.EventCommandMapExtension = EventCommandMapExtension; //# sourceMappingURL=EventCommandMapExtension.js.map