@peculiar/json-schema
Version:
This package uses ES2015 decorators to simplify JSON schema creation and use
9 lines (8 loc) • 316 B
TypeScript
import { IValidation } from "../types";
export declare class LengthValidation implements IValidation {
private length?;
private minLength?;
private maxLength?;
constructor(length?: number | undefined, minLength?: number | undefined, maxLength?: number | undefined);
validate(value: any): void;
}