react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
24 lines (23 loc) • 764 B
text/typescript
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;
/**
* Generates a `bigint` value if the string represents a valid integer
* outside the safe boundaries of the `number` type.
*/
bigIntOnOverflow?: boolean;
}