@webnotion-net/typescript-model-validator
Version:
Flexible and extensible library for validating data models in TypeScript
11 lines (10 loc) • 495 B
TypeScript
import GlobalConstraintInterface from "../../constraints/global/GlobalConstraintInterface";
import GloballyValidatableModelInterface from "../../models/GloballyValidatableModelInterface";
declare class Matches implements GlobalConstraintInterface {
propertyName: string;
secondPropertyName: string;
constructor(propertyName: string, secondPropertyName: string);
validate(data: GloballyValidatableModelInterface): boolean;
getErrorMessage(): string;
}
export default Matches;