mediatr-ts
Version:
Mimic the famous MediatR csharp library see: (https://github.com/jbogard/MediatR)
16 lines • 463 B
JavaScript
/* eslint-disable @typescript-eslint/ban-types */
import { typeMappings } from "../models/mappings/index.js";
/**
* Decorate the pipelineBehavior with this attribute
*
* @param value The request type
*/
var pipelineBehavior = function () {
return function (target) {
typeMappings.pipelineBehaviors.add({
behaviorClass: target
});
};
};
export default pipelineBehavior;
//# sourceMappingURL=pipelineBehavior.attribute.js.map