react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
11 lines (10 loc) • 493 B
TypeScript
import type { RuleGroupTypeAny } from "../types";
import type { RqbState } from "./types";
/**
* Given a `qbId` (passed to every component as part of the `schema` prop), returns
* a Redux selector for use with {@link useQueryBuilderSelector}.
*
* Note that {@link useQueryBuilderQuery} is a more concise way of accessing the
* query for the nearest ancestor {@link QueryBuilder} component.
*/
export declare const getQuerySelectorById: (qbId: string) => (state: RqbState) => RuleGroupTypeAny;