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) • 420 B
TypeScript
import type { RuleGroupTypeAny } from "../types";
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.
*/
export declare const useControlledOrUncontrolled: (params: UseControlledOrUncontrolledParams) => void;