Skip to content

cupertino-files / Predicate

Interface: Predicate ​

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

A decoded condition.

Properties ​

condition ​

condition: string | undefined

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

The filter-menu condition predicateType names, where measured (PREDICATE_TYPE_CONDITIONS).


forConditionalStyle ​

forConditionalStyle: boolean

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

Set on conditional-formatting predicates, absent on filters.


formula ​

formula: RenderedFormula

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

Full render detail, including anything the renderer could not name.


inconsistent ​

inconsistent: boolean

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

True when predicateType disagrees with the formula's operator. Never seen in the corpus; a caller writing predicates should treat it as a bug, and a caller reading one should trust operator.


operands ​

operands: PredicateOperand[]

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

Operands in param_value0..2 order, unused slots dropped.


operator ​

operator: PredicateOperator | undefined

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

The comparison, read from the formula's terminal operator node. undefined when the formula is something richer than a comparison — a "text contains" rule, say, which is a function call.


predicateType ​

predicateType: number | undefined

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

Raw predicate_type; see PREDICATE_TYPE_OPERATORS.


qualifier1 ​

qualifier1: number | undefined

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


qualifier2 ​

qualifier2: number | undefined

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


text ​

text: string

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

The condition as text, e.g. THIS_CELL<0.

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