Skip to content
1 min read · 70 words

Function: isStructuredPredicate()

ts
function isStructuredPredicate(v: unknown): v is StructuredPredicate;

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

Type guard for the whole StructuredPredicate union. A value is a structured predicate iff it is one of the four shapes. Because the combinator shapes are discriminated by their single key and a leaf by path/op, the four guards are mutually exclusive.

Parameters

ParameterType
vunknown

Returns

v is StructuredPredicate