UNPKG

redis-time-series-ts

Version:
21 lines 776 B
import { StringNumberArray } from "../index"; /** * A `label`-`operator`-`value` object used for filtering queries */ export declare class Filter { private readonly label; private readonly operator; private readonly value?; private readonly allowedOperator; /** * The label and value in the constructor create a filter. * * @param label the label of the filter * @param operator the operator used for the filter i.e. FilterOperator.EQUAL or FilterOperator.NOT_EQUAL * @param value the value of the filter */ constructor(label: string, operator: string, value?: string | number | StringNumberArray); flatten(): string[]; protected validateOperator(operator: string): string; } //# sourceMappingURL=filter.d.ts.map