UNPKG

mediatr-ts

Version:

Mimic the famous MediatR csharp library see: (https://github.com/jbogard/MediatR)

19 lines 586 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var index_js_1 = require("../models/mappings/index.js"); /** * Decorate the notificationHandler with this attribute * * @param value The request type * @param order The order of event */ var notificationHandler = function (value) { return function (target) { index_js_1.typeMappings.notifications.add({ notificationClass: value, handlerClass: target }); }; }; exports.default = notificationHandler; //# sourceMappingURL=notificationHandler.attribute.js.map