react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
26 lines (25 loc) • 1.23 kB
TypeScript
import type { Except } from "type-fest";
import type { DefaultRuleGroupType, DefaultRuleGroupTypeIC, ParseSpELOptions } from "../../types/index.noReact";
/**
* Converts a SpEL string expression into a query suitable for the
* {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props
* ({@link index!DefaultRuleGroupType DefaultRuleGroupType}).
*/
declare function parseSpEL(spel: string): DefaultRuleGroupType;
/**
* Converts a SpEL string expression into a query suitable for the
* {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props
* ({@link index!DefaultRuleGroupType DefaultRuleGroupType}).
*/
declare function parseSpEL(spel: string, options: Except<ParseSpELOptions, "independentCombinators"> & {
independentCombinators?: false
}): DefaultRuleGroupType;
/**
* Converts a SpEL string expression into a query suitable for the
* {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props
* ({@link index!DefaultRuleGroupTypeIC DefaultRuleGroupTypeIC}).
*/
declare function parseSpEL(spel: string, options: Except<ParseSpELOptions, "independentCombinators"> & {
independentCombinators: true
}): DefaultRuleGroupTypeIC;
export { parseSpEL };