Skip to content
1 min read · 129 words

Interface: PredicateLeaf

Defined in: src/batteries/orchestration/predicates.ts:31

A leaf predicate: read path from the readable context and compare it with op.

value is optional because truthy and exists are unary — they need no right-hand side. For every other operator parseStructuredPredicate requires value to be present.

Properties

PropertyTypeDescriptionDefined in
opPredicateOpThe comparison operator. truthy/exists are unary and must not carry value.src/batteries/orchestration/predicates.ts:35
pathstringThe dot-path into the readable context to read and compare.src/batteries/orchestration/predicates.ts:33
value?EncodableValueThe right-hand side to compare against. Required for every operator except truthy/exists.src/batteries/orchestration/predicates.ts:37