Skip to content

ConditionGroup

type ConditionGroup =
| {
all: ConditionNode[];
any?: never;
not?: never;
}
| {
all?: never;
any: ConditionNode[];
not?: never;
}
| {
all?: never;
any?: never;
not: ConditionNode;
};

Defined in: schema.ts:114

A boolean group of condition nodes — the building block for AND/OR/NOT nesting inside a rule (or segment). Exactly one key is set:

  • all — every child must match (AND)
  • any — at least one child must match (OR)
  • not — the child must not match (negates a whole subtree)

Groups nest arbitrarily; a child is itself a ConditionNode.