UNPKG

logitar-validation

Version:

JavaScript validation library distributed by Logitar.

10 lines (9 loc) 353 B
import type { ValidationRule } from "../types"; /** * A validation rule that checks if a string or an array is shorter than a maximum length. * @param value The value to validate. * @param args The maximum length. * @returns The result of the validation rule execution. */ declare const maximumLength: ValidationRule; export default maximumLength;