ChemPal Documentation - v1.18.0
    Preparing search index...
    • Type guard for a stored price alert.

      Parameters

      • value: unknown

        The stored value to check

      Returns value is PriceAlert

      Whether the value is a price alert

      isPriceAlert(alert); // true
      isPriceAlert({ id: '3f9c2a' }); // false
      export function isPriceAlert(value: unknown): value is PriceAlert {
      return v.is(priceAlertSchema, value);
      }