UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

10 lines (7 loc) 271 B
import { ValidationRule } from '../types/index.js'; /** * Function to ensure that a string is below or equal to a certain length. * @param {Number} maxLength - Max length of the string. */ declare const maxLength: (max: any) => ValidationRule; export { maxLength };