Function: normalizeBadgeRule() ​
ts
function normalizeBadgeRule(input): BadgeRuleResult;Defined in: badgeRules.ts:207
Tidy a rule someone built, or say what is wrong with it. Empty criteria groups are dropped, as a blank row left in the builder is not a mistake worth stopping for; a rule with no conditions at all is refused.
Parameters ​
| Parameter | Type |
|---|---|
input | unknown |