robust-validator
Version:
Rule-based data validation library
16 lines (15 loc) • 380 B
TypeScript
/**
* The field under validation must be numeric and must have an exact length of
* value.
*
* @example
* import { digits } from "robust-validator"
*
* const definition = {
* value: [digits(4)]
* };
* @type {string}
* @tutorial https://validator.axe-api.com/rules.html#digits-value
*/
declare const _default: (length: number) => string;
export default _default;