Skip to main content

prepareRule()

prepareRule(rule, __namedParameters): RuleType<string, string, any, string>

Ensures that a rule is valid by adding an id property if it does not already exist.

Parameters

ParameterType
ruleRuleType<string, string, any, string>
__namedParametersPreparerOptions

Returns

RuleType<string, string, any, string>

Defined in

packages/react-querybuilder/src/utils/prepareQueryObjects.ts:23


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.