UNPKG

react-querybuilder

Version:

React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts

19 lines (18 loc) 602 B
import type { FullField, ValueSources } from "./basic.mjs"; import type { OptionList } from "./options.mjs"; /** * Options common to all parsers. */ export interface ParserCommonOptions { fields?: OptionList<FullField> | Record<string, FullField>; getValueSources?: (field: string, operator: string) => ValueSources; listsAsArrays?: boolean; /** * When true, the generated query will use independent combinators ({@link RuleGroupTypeIC}). */ independentCombinators?: boolean; /** * When true, a unique `id` will be generated for each rule and group in the query. */ generateIDs?: boolean; }