UNPKG

@webnotion-net/typescript-model-validator

Version:

Flexible and extensible library for validating data models in TypeScript

10 lines (9 loc) 281 B
import ConstraintInterface from "./ConstraintInterface"; declare class Length implements ConstraintInterface { min: number; max: number; constructor(min: number, max: number); validate(data: string): boolean; getErrorMessage(): string; } export default Length;