Skip to content
1 min read · 62 words

Function: isPredicateLeaf()

ts
function isPredicateLeaf(v: unknown): v is PredicateLeaf;

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

Type guard for PredicateLeaf. A leaf is a plain object carrying a string path and a string op; the op is narrowed to PredicateOp only when it is a member of the closed set.

Parameters

ParameterType
vunknown

Returns

v is PredicateLeaf