UNPKG

mediatr-ts

Version:

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

9 lines (8 loc) 285 B
import type { RequestDataClass } from "../models/requestData.js"; /** * Decorate the requestHandler with this attribute * * @param value The request type */ declare const requestHandler: <T>(value: RequestDataClass<T>) => (target: Function) => void; export default requestHandler;