Skip to content

cupertino-files / PREDICATE_TYPE_OPERATORS

Variable: PREDICATE_TYPE_OPERATORS

const PREDICATE_TYPE_OPERATORS: ReadonlyMap<number, PredicateOperator>

Defined in: src/tst/predicates.ts:139

predicate_type values paired with the operator their formula uses.

Observations, not a schema. Every entry is a pairing seen in the fixture corpus, where the formula AST independently states the comparison. Apple's enum certainly has more members; a value absent here is reported as undefined rather than guessed, because a filter silently read as "greater than" when it means "greater than or equal" is worse than one honestly reported as unknown.

All six codes are observed, each stated by a real document's own formula, and they follow the condition menu's order laid out from 5. Filters and conditional formatting share the encoding — 7 is confirmed from both. scripts/harvest-predicates.ts re-derives every pairing from any rule-bearing file.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.