prepareRule()
prepareRule(
rule
:RuleType
,__namedParameters
:PreparerOptions
):RuleType
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
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.