UNPKG

java-bean-validation.js

Version:
5 lines (4 loc) 702 B
import { TypeName, Violation, TypeValidationsDescriptor, PropertyValidationsDescriptor } from '../core/core'; export declare function validateObject(typeOrTypeName: TypeValidationsDescriptor | TypeName, value: any, groups?: string[]): Violation[]; export declare function validateProperty(propertyOrTypeOrTypeName: PropertyValidationsDescriptor | TypeValidationsDescriptor | TypeName, propertyName: string | number, objectWithProperty: any, groups?: string[]): Violation[]; export declare function validateValueOfProperty(propertyOrTypeOrTypeName: PropertyValidationsDescriptor | TypeValidationsDescriptor | TypeName, propertyName: string | number, propertyValue: any, groups?: string[]): Violation[];