Type guard for a stored price alert.
The stored value to check
Whether the value is a price alert
isPriceAlert(alert); // trueisPriceAlert({ id: '3f9c2a' }); // false Copy
isPriceAlert(alert); // trueisPriceAlert({ id: '3f9c2a' }); // false
export function isPriceAlert(value: unknown): value is PriceAlert { return v.is(priceAlertSchema, value);} Copy
export function isPriceAlert(value: unknown): value is PriceAlert { return v.is(priceAlertSchema, value);}
Type guard for a stored price alert.