inferred-types 0.55.0 → 0.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -179,6 +179,7 @@ __export(src_exports, {
179
179
  isDutchNewsUrl: () => isDutchNewsUrl,
180
180
  isEbayUrl: () => isEbayUrl,
181
181
  isEmail: () => isEmail,
182
+ isEmpty: () => isEmpty,
182
183
  isEnergyMetric: () => isEnergyMetric,
183
184
  isEnergyUom: () => isEnergyUom,
184
185
  isEqual: () => isEqual,
@@ -3849,6 +3850,11 @@ function isEmail(val) {
3849
3850
  return isString(val) && (LOWER_ALPHA_CHARS.includes(firstChar) && parts.length === 2 && domain.length >= 1 && tld.length >= 2);
3850
3851
  }
3851
3852
 
3853
+ // src/type-guards/isEmpty.ts
3854
+ function isEmpty(val) {
3855
+ return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
3856
+ }
3857
+
3852
3858
  // src/type-guards/isErrorCondition.ts
3853
3859
  function isErrorCondition(value, kind = null) {
3854
3860
  return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value.kind === kind : true : false;
@@ -5862,6 +5868,7 @@ function asVueRef(value) {
5862
5868
  isDutchNewsUrl,
5863
5869
  isEbayUrl,
5864
5870
  isEmail,
5871
+ isEmpty,
5865
5872
  isEnergyMetric,
5866
5873
  isEnergyUom,
5867
5874
  isEqual,