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
Parameter | Type |
---|---|
rg | RuleType | RG |
__namedParameters | PreparerOptions |
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.