prepareRule()
prepareRule(
rule
:RuleType
,__namedParameters
:PreparerOptions
):RuleType
<string
,string
,any
,string
>
Defined in: packages/react-querybuilder/src/utils/prepareQueryObjects.ts:23
Ensures that a rule is valid by adding an id
property if it does not already exist.
Parameters
Parameter | Type |
---|---|
rule | RuleType |
__namedParameters | PreparerOptions |
Returns
RuleType
<string
, string
, any
, string
>
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.