UNPKG

robust-validator

Version:

Rule-based data validation library

16 lines (15 loc) 465 B
/** * The field under validation must have a size between the given min and max. * Strings, and numerics are evaluated in the same fashion as the size rule. * * @example * import { between } from "robust-validator" * * const definition = { * value: [between(5, 10)] * }; * @type {string} * @tutorial https://validator.axe-api.com/rules.html#between-min-max */ declare const _default: (min: number, max: number) => string; export default _default;