How to use the @shopify/predicates.lengthLessThan function in @shopify/predicates

To help you get started, we’ve selected a few @shopify/predicates examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Shopify / quilt / packages / react-form / src / validation / validators.ts View on Github external
export function lengthLessThan(length: number, error: ErrorContent) {
  return validator(predicates.lengthLessThan(length))(error);
}
github Shopify / quilt / packages / react-form-state / src / validators.ts View on Github external
lengthLessThan(length: number, errorContent: ErrorContent) {
    return validate(lengthLessThan(length), errorContent);
  },