Skip to main content

prepareRuleOrGroup()

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

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

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

Type Parameters

Type Parameter
RG extends RuleGroupTypeAny

Parameters

ParameterType
rgRuleType | RG
__namedParametersPreparerOptions

Returns

RuleType | RuleGroupType | RuleGroupTypeIC


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.