UNPKG

@foblex/mediator

Version:

An Angular library that implements the mediator pattern, providing a centralized way to handle requests with optional validation and execution pipelines.

6 lines (5 loc) 308 B
import { Type } from '@angular/core'; import { IValidator } from './i-validator'; declare type Constructor<T = any> = new (...args: any[]) => T; export declare function FValidatorRegister<TRequest, TResponse>(requestType: Type<TRequest>): (constructor: Constructor<IValidator<TRequest>>) => void; export {};