andOrNotEvaluator.d.ts 493 B

1234567891011121314
  1. /**
  2. * Class used to evaluate queries containing `and` and `or` operators
  3. */
  4. export declare class AndOrNotEvaluator {
  5. /**
  6. * Evaluate a query
  7. * @param query defines the query to evaluate
  8. * @param evaluateCallback defines the callback used to filter result
  9. * @returns true if the query matches
  10. */
  11. static Eval(query: string, evaluateCallback: (val: any) => boolean): boolean;
  12. private static _HandleParenthesisContent;
  13. private static _SimplifyNegation;
  14. }