UNPKG

mediatr-ts

Version:

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

17 lines 498 B
import { typeMappings } from "../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) { typeMappings.notifications.add({ notificationClass: value, handlerClass: target }); }; }; export default notificationHandler; //# sourceMappingURL=notificationHandler.attribute.js.map