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
| Parameter | Type | Description |
|---|---|---|
ops | MediaOp[] | The ops array. |
Returns
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.