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