How to use the @shopify/predicates.notEmpty 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 notEmpty(error: ErrorContent) {
  return validator(predicates.notEmpty, {skipOnEmpty: false})(error);
}