UNPKG

@berish/validate

Version:

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

13 lines (12 loc) 540 B
import { IValidateRule } from '../rule'; import * as globalMethodsImport from '../index'; export interface IRulePlugin { upgradeRuleAfterInit?(rule: IValidateRule<any>): IValidateRule<any> | void; upgradeRuleAfterRegister?(rule: IValidateRule<any>): IValidateRule<any> | void; upgradeMethods?(globalMethods: typeof globalMethodsImport): typeof globalMethodsImport | { [key: string]: any; } | void; } export interface IRulePluginDefault<PluginParams> extends IRulePlugin { (params?: PluginParams): IRulePlugin; }