robust-validator
Version:
Rule-based data validation library
17 lines (16 loc) • 490 B
TypeScript
/**
* The field under validation must have a size matching the given value.
* For string data, value corresponds to the number of characters. For numeric
* data, value corresponds to a given integer value.
*
* @example
* import { size } from "robust-validator"
*
* const definition = {
* value: [size(10)]
* };
* @type {string}
* @tutorial https://validator.axe-api.com/rules.html#size-value
*/
declare const _default: (value: number) => string;
export default _default;