Skip to content
1 min read · 104 words

Function: isPlanEdge()

ts
function isPlanEdge(v: unknown): v is PlanEdge;

Defined in: src/batteries/orchestration/plan.ts:95

True when v is a well-shaped PlanEdge.

Parameters

ParameterTypeDescription
vunknownThe value to test.

Returns

v is PlanEdge

True when v is a PlanEdge.

Remarks

A shape guard, not a validator. handle must be one of the closed EdgeHandle values — the five literal handles, or a case_${string} (the case_ prefix is reserved for select cases, so any string starting with case_ is a legal handle). id, from and to must be strings. Extra fields are tolerated.