ConditionConfig for CountMatchesCondition

interface CountMatchesConditionConfig {
    minimum?: number;
    maximum?: number;
    conditionConfigs: ConditionConfig[];
    treatUndeterminedAs?: ConditionEvaluateResult;
    conditionType: string;
    category?: ConditionCategory;
}

Hierarchy (view full)

Properties

minimum?: number

Must have at least this many matches. 0 or higher. When undefined, the Minimum is 1. 0 is supported, allowing for there to be 0 matches. However, that is a special case. Its more likely the user wants to count at least 1.

maximum?: number

Must have no more than this many matches. When undefined, there is no Maximum.

conditionConfigs: ConditionConfig[]

Conditions for this condition to evaluate and apply its rules based on those results.

treatUndeterminedAs?: ConditionEvaluateResult

When a child condition evaluates as Undetermined, this indicates how to handle it. Defaults to Undetermined.

conditionType: string

Identifies the class for ConditionFactory to create. It is also used as the Validator's errorCode when ValidatorConfig.errorCode was not assigned.

Most Condition classes have an official value for Category. This allows you to override that official value in special situations and supply a value when the Condition does not.

Generated using TypeDoc v0.25.12