interface Price {
    matchesExpression(
        price: string | number,
        expr: PriceExpression,
    ): boolean;
    matchesFilter(price: number, filter: PriceFilter): boolean;
    parseExpression(input: string): PriceExpression;
    parseFilter(input: string): PriceFilter;
}
Index

Methods

  • Checks that the given price meets the price filter constraints.

    Parameters

    Returns boolean

  • Parameters

    • input: string

      Price expression to parse.

    Returns PriceExpression

    Parsed price expression or null.

  • Parameters

    • input: string

      Price filter to parse.

    Returns PriceFilter

    Parsed price filter or null.