UNPKG

mediatr-ts

Version:

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

18 lines 551 B
"use strict"; /* eslint-disable @typescript-eslint/ban-types */ Object.defineProperty(exports, "__esModule", { value: true }); var index_js_1 = require("../models/mappings/index.js"); /** * Decorate the pipelineBehavior with this attribute * * @param value The request type */ var pipelineBehavior = function () { return function (target) { index_js_1.typeMappings.pipelineBehaviors.add({ behaviorClass: target }); }; }; exports.default = pipelineBehavior; //# sourceMappingURL=pipelineBehavior.attribute.js.map