prepareRuleOrGroup()
prepareRuleOrGroup<
RG
>(rg
:RuleType
<string
,string
,any
,string
> |RG
,__namedParameters
:PreparerOptions
):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
Parameter | Type |
---|---|
rg | RuleType <string , string , any , string > | RG |
__namedParameters | PreparerOptions |
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.