UNPKG

@react-input-validator/rules

Version:

The validation rule objects used by the packages: `@react-input-validator/core`, `@react-input-validator/native` and `@react-input-validator/web`

13 lines 528 B
import type { IRule, LengthType, Nullable } from './Rule'; import ValidationRule from './ValidationRule'; export declare class Length extends ValidationRule<LengthType> { #private; constructor(min?: number, max?: number); min: number | undefined; max: number | undefined; get errorMessage(): Nullable<string>; validate(): IRule<LengthType>; } export declare const length: (min: number, max?: number) => Length; export declare const lengthMax: (max: number) => Length; //# sourceMappingURL=length.d.ts.map