UNPKG

@comodinx/query-filters

Version:

@comodinx/query-filters is a module for parsing filters in string to object.

20 lines (19 loc) 555 B
import { ParserOptions, ParserResult } from "./types"; export declare class Formatter { private options; private regexpOperatorPrefix; private regexpOperatorSuffix; private regexpFilters; constructor(options?: ParserOptions); format(filters: ParserResult): string | undefined; private formatNode; private formatPlainObject; private wrapGroup; private getOrKeys; private getAndKeys; private pickLogicalArray; private mapKey; private mapValue; private mapOperator; private toStringOperator; }