UNPKG

586 BTypeScriptView Raw
1import { ValidationFunction, Values } from './interfaces';
2export declare function isExisty<V>(value: V): boolean;
3export declare function isEmpty<V>(value: V): boolean;
4export declare function isDefaultRequiredValue(value: unknown): boolean;
5export declare function matchRegexp<V>(_values: Values, value: V, regexp: RegExp): boolean;
6interface Validations<V> {
7 [key: string]: ValidationFunction<V>;
8}
9declare const validations: Validations<any>;
10export declare const addValidationRule: <V>(name: string, func: ValidationFunction<V>) => void;
11export default validations;