Represents a parsed price comparison expression.

This is the normalized form of a user-provided price filter such as <10, >=2.50, or <= 0.99.

The rawValue field is retained for diagnostics, logging, and future serialization, while value should be used exclusively for evaluation.

interface PriceExpression {
    operator: "<" | ">" | "<=" | ">=";
    rawValue: string;
    value: number;
}
Index

Properties

operator: "<" | ">" | "<=" | ">="

Comparison operator to apply.

rawValue: string

Preserves the original numeric string.

value: number

Parsed numeric value used for all comparisons.