UNPKG

react-querybuilder

Version:

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

13 lines (12 loc) 447 B
import type { RuleGroupTypeAny } from "../types/index.mjs"; export interface UseControlledOrUncontrolledParams { defaultQuery?: RuleGroupTypeAny; queryProp?: RuleGroupTypeAny; } /** * Logs a warning when the component changes from controlled to uncontrolled, * vice versa, or both `query` and `defaultQuery` are provided. * * @group Hooks */ export declare const useControlledOrUncontrolled: (params: UseControlledOrUncontrolledParams) => void;