Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function lengthLessThan(length: number, error: ErrorContent) {
return validator(predicates.lengthLessThan(length))(error);
}
lengthLessThan(length: number, errorContent: ErrorContent) {
return validate(lengthLessThan(length), errorContent);
},