@berish/validate
Version:
Validation of complex objects with support for validation maps, rules and decorators
5 lines (4 loc) • 425 B
TypeScript
import { IValidateRule, IRuleObject, IRuleErrorTextResult } from './types';
import { FLAG_CONDITION_TRUTHY } from './flags';
export declare function executeRuleSync(rule: IValidateRule<any>, ruleObject: IRuleObject): IRuleErrorTextResult | typeof FLAG_CONDITION_TRUTHY;
export declare function executeRuleAsync(rule: IValidateRule<any>, ruleObject: IRuleObject): Promise<IRuleErrorTextResult | typeof FLAG_CONDITION_TRUTHY>;