Skip to main content

prepareRuleOrGroup()

prepareRuleOrGroup<RG>(rg, __namedParameters): RuleType<string, string, any, string> | RuleGroupType<RuleType<string, string, any, string>, string> | RuleGroupTypeIC<RuleType<string, string, any, string>, string>

Ensures that a rule or group is valid. See prepareRule and prepareRuleGroup.

Type Parameters

Type Parameter
RG extends RuleGroupTypeAny

Parameters

ParameterType
rgRuleType<string, string, any, string> | RG
__namedParametersPreparerOptions

Returns

RuleType<string, string, any, string> | RuleGroupType<RuleType<string, string, any, string>, string> | RuleGroupTypeIC<RuleType<string, string, any, string>, string>

Defined in

packages/react-querybuilder/src/utils/prepareQueryObjects.ts:58


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.