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
| Parameter | Type | Description |
|---|---|---|
v | unknown | The 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.