Skip to content
1 min read · 71 words

Function: fromOps()

ts
function fromOps(ops: MediaOp[]): MediaPlan;

Defined in: src/batteries/media/plan.ts:278

Build a MediaPlan from a JSON ops array. The inverse of toOps.

Parameters

ParameterTypeDescription
opsMediaOp[]The ops array.

Returns

MediaPlan

The equivalent plan.

Remarks

Performs structural normalization only (verb-id folding via the caller's verb table happens in validation, not here). Steps carry no spans.