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
| Parameter | Type |
|---|---|
v | unknown |
Returns
v is StructuredPredicate