UNPKG

@berish/validate

Version:

Validation of complex objects with support for validation maps, rules and decorators

5 lines (4 loc) 275 B
import { IRulePlugin } from './abstract'; export declare const plugins: IRulePlugin[]; export declare function usePlugin(...include: IRulePlugin[]): void; export declare function callPlugin<T>(initialValue: T, callbackPlugin: (plugin: IRulePlugin, initialValue: T) => T): T;