How to use the @shopify/predicates.lengthMoreThan 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 lengthMoreThan(length, error: ErrorContent) {
  return validator(predicates.lengthMoreThan(length))(error);
}
github Shopify / quilt / packages / react-form-state / src / validators.ts View on Github external
lengthMoreThan(length: number, errorContent: ErrorContent) {
    return validate(lengthMoreThan(length), errorContent);
  },