mediatr-ts
Version:
Mimic the famous MediatR csharp library see: (https://github.com/jbogard/MediatR)
10 lines (9 loc) • 336 B
TypeScript
import type { NotificationClass } from "../models/notificationData.js";
/**
* Decorate the notificationHandler with this attribute
*
* @param value The request type
* @param order The order of event
*/
declare const notificationHandler: (value: NotificationClass) => (target: Function) => void;
export default notificationHandler;